1 2002-05-26 Jakub Jelinek <jakub@redhat.com>
3 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5 2002-05-26 Andreas Jaeger <aj@suse.de>
7 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
9 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
11 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
13 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
15 (struct op): Use cpp_num.
16 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
17 num_part_mul, num_unary_op, num_binary_op, num_negate,
18 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
19 num_div_op, num_lshift, num_rshift, append_digit): New.
20 (interpret_number, parse_defined, eval_token, reduce): Update
21 for two-integer arithmetic.
22 (binary_handler): New typedef.
24 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
25 (_cpp_parse_expr, reduce): Update to handle two-integers.
26 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
28 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
30 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
31 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
32 branch insn into account, do not assume 1.
33 (avr_out_sbxx_branch): New function. Optimize cases of skipping
34 over single word insn. Handle upper half of I/O space too.
35 * config/avr/avr.md (*sbrx_branch): Use it.
36 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
37 (*sbix_branch, *sbix_branch_bit7): Likewise.
38 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
39 Use RTL peepholes to optimize register operand sign tests.
41 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
43 * config/avr/avr.c (avr_asm_only_p): New variable.
44 (avr_override_options): Set it here if AVR1.
45 (asm_file_start): Test it here, report an error if set.
47 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
49 * alias.c: Fix formatting.
50 * attribs.c: Likewise.
51 * bb-reorder.c: Likewise.
54 * builtins.c: Likewise.
56 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
58 * reload.c (find_valid_class): Accept new argument DEST,
59 choose class accordingly.
60 (push_reload): Update callers.
62 2002-05-26 Andreas Jaeger <aj@suse.de>
64 * combine.c (combine_instructions): Do not indent #if for
67 2002-05-25 Richard Henderson <rth@redhat.com>
69 * c-pragma.c (apply_pragma_weak): Convert value identifier to
70 string for decl_attributes.
71 (handle_pragma_weak): Call assemble_alias if we're modifying
74 2002-05-25 Richard Henderson <rth@redhat.com>
77 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
78 using rtl instead of fprintf.
79 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
80 * config/sparc/sparc-protos.h: Update.
82 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
84 * Makefile.in (C_COMMON_H): Fix.
86 * c-common.c: Don't include c-lex.h.
87 (builtin_define_with_value): Make static and prototype.
88 (builtin_define_std): Move from c-lex.h.
89 * c-common.h (init_c_lex): Move from c-lex.h.
90 * c-decl.c: Don't include c-lex.h.
91 (make_pointer_declarator): Move from c-parse.in.
92 * c-lex.c: Don't include c-lex.h.
94 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
95 (make_pointer_declarator): Move to c-decl.c.
96 * c-pragma.c: Don't include c-lex.h.
97 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
98 * c-tree.h (make_pointer_declarator): New.
100 * passes.texi, tm.texi: Update.
102 * Make-lang.in: Update and correct.
103 * objc-act.c: Don't include c-lex.h or cpplib.h.
105 * treetree.c: Don't include c-lex.h.
107 * darwin-c.c: Don't include c-lex.h.
108 * c4x/c4x-c.c: Don't include c-lex.h.
110 * i370/i370-c.c: Don't include c-lex.h.
111 * i370/t-i370: Update.
112 * i960/i960-c.c: Don't include c-lex.h.
113 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
114 * i960/t-960bare: Update.
115 * i960/t-vxworks: Update.
116 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
117 * rs6000/t-darwin: Update.
118 * rs6000/t-rs6000-c-rule: Update.
119 * v850/v850-c.c: Don't include c-lex.h.
120 * v850/v850.c: Don't include c-lex.h or cpplib.h.
123 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
125 * tree.def: Fix typos.
126 * doc/install.texi: Likewise.
128 2002-05-25 Richard Henderson <rth@redhat.com>
130 * configure.in (HAVE_AS_TLS): Add ia64 test.
131 * configure: Rebuild.
132 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
133 (override_options): Set it.
134 (TARGET_HAVE_TLS): New.
135 (sdata_symbolic_operand): Look for 's'.
136 (tls_symbolic_operand): New.
137 (ia64_expand_load_address): Abort for tls symbols.
138 (gen_tls_get_addr): New.
139 (gen_thread_pointer): New.
140 (ia64_expand_move): Split out from movdi. Handle tls symbols.
141 (rtx_needs_barrier): Add new unspecs.
142 (ia64_encode_section_info): Handle tls symbols.
143 (ia64_strip_name_encoding): Strip two encoding chars.
144 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
145 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
146 (TARGET_OPTIONS): Add tls-size.
147 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
148 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
149 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
150 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
151 (movsf, movdf): Likewise.
152 (movdi_symbolic): Use match_scratch. Don't split if we won't
153 have a scratch availiable.
154 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
155 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
156 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
157 * config/ia64/ia64-protos.h: Update.
158 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
159 sdata_symbolic_operand.
160 (ASM_OUTPUT_LABELREF): Strip two characters.
162 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
164 * combine.c (simplify_set): Remove an unnecessary subreg.
166 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
168 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
170 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
172 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
174 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
176 2002-05-25 Roger Sayle <roger@eyesopen.com>
178 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
179 (cond (compare x y) 0) into the equivalent (cond x y).
181 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
183 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
185 2002-05-24 Zack Weinberg <zack@codesourcery.com>
187 * config.gcc: Remove all stanzas for previously obsoleted
188 systems. Where necessary, add explicit error stanzas to
189 prevent removed systems from being misidentified as something
190 else. Begin a fresh obsoletions list, with the systems that
191 were reprieved last round.
192 * doc/install.texi: Remove all mention of dead targets.
193 * fixinc/mkfixinc.sh: Likewise.
195 * config/arm/arm.h: Bit 31 of target_flags is no longer
198 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
199 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
200 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
201 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
202 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
203 config/alpha/osf12.h, config/alpha/osf2or3.h,
204 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
205 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
206 config/clipper/clipper-protos.h, config/clipper/clipper.c,
207 config/clipper/clipper.h, config/clipper/clipper.md,
208 config/clipper/clix.h, config/convex/convex-protos.h,
209 config/convex/convex.c, config/convex/convex.h,
210 config/convex/convex.md, config/convex/fixinc.convex,
211 config/convex/proto.h, config/elxsi/elxsi-protos.h,
212 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
213 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
214 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
215 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
216 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
217 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
218 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
219 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
220 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
221 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
222 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
223 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
224 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
225 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
226 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
227 config/m68k/altos3068.h, config/m68k/apollo68.h,
228 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
229 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
230 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
231 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
232 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
233 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
234 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
235 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
236 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
237 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
238 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
239 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
240 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
241 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
242 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
243 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
244 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
245 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
246 config/mips/dec-osf1.h, config/mips/elflorion.h,
247 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
248 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
249 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
250 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
251 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
252 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
253 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
254 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
255 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
256 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
257 config/ns32k/sequent.h, config/ns32k/tek6000.h,
258 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
259 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
260 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
261 config/sparc/rtems.h, config/we32k/we32k-protos.h,
262 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
265 2002-05-24 Richard Henderson <rth@redhat.com>
267 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
268 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
269 * config/i386/i386.c (tls_model_chars): Add leading space.
270 (tls_symbolic_operand): Don't bias by 1.
271 (legitimize_address): Don't unbias by 1.
273 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
275 * lcm.c (optimize_mode_switching): Change bb used as indices
278 2002-05-24 Richard Henderson <rth@redhat.com>
280 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
281 of update_life_info_in_dirty_blocks.
283 2002-05-24 Jakub Jelinek <jakub@redhat.com>
286 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
288 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
291 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
293 2002-05-24 Jim Blandy <jimb@redhat.com>
295 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
296 entry with a type code of zero, marking the end of the compilation
299 2002-05-24 Richard Henderson <rth@redhat.com>
301 * varasm.c (asm_output_bss): Always output one byte.
302 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
304 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
306 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
309 2002-05-24 Andreas Jaeger <aj@suse.de>
311 * ggc-page.c (alloc_page): Cast variables of type size_t to
312 unsigned long, adjust printf format string.
313 (ggc_alloc): Likewise.
314 (ggc_print_statistics): Likewise.
315 (ggc_print_statistics): Correct printf format string for SCALE to
318 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
320 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
322 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
323 Zack Weinberg <zack@codesourcery.com>
325 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
327 * dwarf2out.c (lookup_filename): Properly quote filename in .file
328 directive in assembly file.
329 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
330 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
331 * config/pj/pj.h (ASM_FILE_START): Likewise.
332 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
333 * config/avr/avr.c (asm_file_end): Likewise.
334 * toplev.c (output_quoted_string): Handle possibly signed plain
336 * toplev.h (output_clean_symbol_name): Declare
337 * toplev.c (output_clean_symbol_name): Define.
338 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
339 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
341 2002-05-24 Alan Modra <amodra@bigpond.net.au>
343 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
345 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
347 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
350 2002-05-23 Richard Henderson <rth@redhat.com>
352 * configure.in (HAVE_AS_TLS): New test.
353 * config.in, configure: Rebuild.
354 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
355 (ix86_tls_dialect_string, ix86_tls_dialect): New.
356 (override_options): Set it.
357 (tls_model_chars, tls_symbolic_operand): New.
358 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
359 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
360 (local_exec_symbolic_operand): New.
361 (get_pic_label_name): Merge into output_set_got.
362 (ix86_asm_file_end): Emit pic_label_name if defined.
363 (legitimate_constant_p, constant_address_p): New.
364 (legitimate_pic_operand_p): New.
365 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
366 (legitimate_address_p): Likewise.
367 (ix86_encode_section_info): Rename from i386_; handle tls decls.
368 (ix86_strip_name_encoding): New.
369 (get_thread_pointer): New.
370 (legitimize_address): Handle tls symbols.
371 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
373 (struct machine_function): Add some_ld_name.
374 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
375 (print_operand) [&]: Use it. Handle UNSPEC_TP.
376 (output_addr_const_extra): New.
377 (maybe_get_pool_constant): New.
378 (ix86_split_to_parts): Use it.
379 (ix86_expand_move): Handle tls symbols.
380 (ix86_tls_get_addr): New.
381 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
382 (TARGET_OPTIONS): Add tls-dialect.
383 (CONSTANT_ADDRESS_P): Use new out-of-line function.
384 (LEGITIMATE_CONSTANT_P): Likewise.
385 (LEGITIMATE_PIC_OPERAND_P): Likewise.
386 (TARGET_STRIP_NAME_ENCODING): New.
387 (ASM_OUTPUT_LABELREF): New.
388 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
389 (OUTPUT_ADDR_CONST_EXTRA): New.
390 (PREDICATE_CODES): Update.
391 (ix86_tls_dialect, ix86_tls_dialect_string): New.
392 * config/i386/i386.md: Regroup and renumber unspec constants.
393 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
394 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
395 (tls_global_dynamic, tls_local_dynamic_base): New.
396 (tls_local_dynamic_once): New.
397 * config/i386/i386-protos.h: Update.
399 2002-05-23 Richard Henderson <rth@redhat.com>
401 * genemit.c (gen_insn): Print file:lineno comment before function.
403 * gensupport.c (struct queue_elem): Add filename member.
404 (queue_pattern): Initialize it; update all callers.
405 (process_include): Don't free filename.
406 (read_md_rtx): Set read_rtx_filename.
408 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
410 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
412 2002-05-23 Richard Henderson <rth@redhat.com>
414 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
416 2002-05-23 Richard Henderson <rth@redhat.com>
418 * doc/extend.texi (C++98 Thread-Local Edits): Update with
419 commentary from Mark.
421 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
423 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
424 Use FOR_EACH_BB macros to iterate over basic block chain.
425 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
426 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
428 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
429 find_unreachable_blocks, create_edge_list, verify_edge_list,
430 remove_fake_edges, add_noreturn_fake_exit_edges,
431 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
433 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
434 find_sub_basic_blocks): Likewise.
435 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
437 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
439 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
441 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
442 commit_edge_insertions, commit_edge_insertions_watch_calls,
443 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
444 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
445 * conflict.c (conflict_graph_compute): Likewise.
446 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
447 df_modified_p, df_refs_unlink, df_dump): Likewise.
448 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
449 * final.c (compute_alignments): Likewise.
450 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
451 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
452 count_or_remove_death_notes): Likewise.
453 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
454 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
455 classic_gcse, compute_transp, cprop, compute_pre_data,
456 compute_transpout, invalidate_nonnull_info,
457 delete_null_pointer_checks_1, delete_null_pointer_checks,
458 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
459 compute_store_table, build_store_vectors, store_motion): Likewise.
460 * global.c (global_conflicts, mark_elimination): Likewise.
461 * graph.c (print_rtl_graph_with_bb): Likewise.
462 * haifa-sched.c (sched_init): Likewise.
463 * ifcvt.c (if_convert): Likewise.
464 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
465 compute_available, compute_nearerout, compute_rev_insert_delete,
466 optimize_mode_switching): Likewise.
467 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
468 * predict.c (estimate_probability, note_prediction_to_br_prob,
469 propagate_freq, counts_to_freqs, expensive_function_p,
470 estimate_bb_frequencies): Likewise.
471 * profile.c (instrument_edges, get_exec_counts,
472 compute_branch_probabilities, compute_checksum, branch_prob,
473 find_spanning_tree): Likewise.
474 * recog.c (split_all_insns, peephole2_optimize): Likewise.
475 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
477 * regclass.c (scan_one_insn, regclass): Likewise.
478 * regmove.c (mark_flags_life_zones, regmove_optimize,
479 record_stack_memrefs): Likewise.
480 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
481 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
482 * resource.c (find_basic_block): Likewise.
483 * sched-ebb.c (schedule_ebbs): Likewise.
484 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
485 find_single_block_region, find_rgns, schedule_insns)
486 * sibcall.c (optimize_sibling_and_tail_recursive_call)
487 * ssa-ccp.c (optimize_unexecutable_edges,
488 ssa_ccp_df_delete_unreachable_insns): Likewise.
489 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
490 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
491 rename_block, convert_to_ssa, compute_conservative_reg_partition,
492 compute_coalesced_reg_partition, rename_equivalent_regs,
493 convert_from_ssa): Likewise.
494 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
495 process_for_unwind_directive): Likewise.
497 * df.c (FOR_ALL_BBS): Removed.
498 * gcse.c (struct null_pointer_info): Type of current_block field
500 (struct reg_avail_info): Type of last_bb field changed.
501 * config/ia64/ia64.c (block_num): Removed.
502 (need_copy_state): Type changed.
505 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
507 * cppinit.c (mark_named_operators): Split out from init_builtins.
508 (cpp_finish_options): Call it from here instead.
510 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
512 * builtin-attrs.def: Update copyright years.
513 (ATTR_NONNULL): New attribute identifier.
514 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
515 attribute tree lists.
516 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
518 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
519 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
520 attribute lists. Chain the appropriate nonnull attribute.
521 * c-format.c (check_format_arg): Remove null format string
523 * testsuite/gcc.dg/format/null-1.c: New test.
525 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
527 * Makefile.in (ADAC): Define.
529 (.SUFFIXES): Move before language makefile fragments.
530 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
532 2002-05-23 Mark Mitchell <mark@codesourcery.com>
534 * varasm.c (make_decl_rtl): Don't allow weak variables to be
537 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
539 * cfg.c (dump_flow_info): Print results of
540 maybe_hot/probably_never_executed predicates.
541 * toplev.c (open_dump_file): Print function frequency.
543 2002-05-23 David S. Miller <davem@redhat.com>
545 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
548 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
550 * c-common.c (warn_nonnull): Declare.
551 (c_common_attribute_table): Add "nonnull" attribute.
552 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
553 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
554 check_function_arguments_recurse): New functions.
555 * c-common.h (warn_nonnull): Declare extern.
556 (check_function_arguments, check_function_arguments_recurse): New
558 * c-decl.c (c_decode_option): Add -Wnonnull option.
559 * c-format.c (set_Wformat): Set warn_nonnull if enabling
561 (format_check_context): New structure.
562 (check_format_info_recurse): Remove recursion and rename to...
563 (check_format_arg): ...this. Update comment.
564 (check_format_info): Use check_function_arguments_recurse.
565 * c-typeck.c (build_function_call): Call check_function_arguments
566 instead of check_function_format.
567 * doc/extend.texi: Document "nonnull" attribute.
568 * doc/invoke.texi: Docuemnt -Wnonnull option.
569 * testsuite/gcc.dg/nonnull-1.c: New test.
570 * testsuite/gcc.dg/nonnull-2.c: New test.
572 2002-05-23 David S. Miller <davem@redhat.com>
574 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
575 * cfgcleanup.c (cleanup_cfg): If it is set do not
576 attempt to delete trivially dead insns.
577 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
578 * toplev.c (rest_of_compilation): Document non-trivial aspect
579 the RTL before optimize_save_area_alloca is run.
581 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
583 * c-lex.c (indent_level): Remove.
584 (cb_file_change, c_lex): Remove indent level handling.
585 * c-lex.h (indent_level): Remove.
586 * input.h (struct file_stack): Remove indent_level.
587 * toplev.c (push_srcloc): Remove indent_level handling.
589 2002-05-23 Jakub Jelinek <jakub@redhat.com>
592 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
593 of x in constraints for clarity.
594 (sse_mov?fcc split): abort if op2 == op3.
595 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
596 sse_movsfcc_const0_4): Add earlyclobber.
597 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
598 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
599 Use Y instead of x in constraints.
601 2002-05-23 Richard Henderson <rth@redhat.com>
603 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
604 (C++98 Thread-Local Edits): New subsection.
606 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
607 (ix86_arch): Set type to enum processor_type.
609 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
610 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
612 2002-05-23 Jakub Jelinek <jakub@redhat.com>
614 * configure.in: Fix as version test for binutils 2.12.1 releases
616 * configure: Rebuilt.
618 2002-05-23 Richard Henderson <rth@redhat.com>
620 * config/i386/i386.c (get_pic_label_name): New.
621 (load_pic_register): Remove.
622 (output_set_got): New.
623 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
624 * config/i386/i386.md (UNSPEC_SET_GOT): New.
625 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
626 (prologue_set_got, prologue_get_pc): Remove.
627 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
628 (builtin_setjmp_receiver): Use gen_set_got.
629 * config/i386/i386-protos.h: Update.
631 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
633 * gcse.c (hash_expr): Do not use alias set for hashing.
635 2002-05-22 Kevin Buettner <kevinb@redhat.com>
637 * dbxout.c (dbxout_class_name_qualifiers): New function.
638 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
640 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
642 * cpperror.c (_cpp_begin_message): No special casing
644 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
645 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
646 * cpplib.c (do_include_common): Use DL_ERROR.
647 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
649 * fix-header.c (read_scan_file): Update.
651 2002-05-22 Richard Henderson <rth@redhat.com>
653 * config/i386/i386.c (ix86_expand_call): New function, extracted
654 from md call patterns. Add pic_offset_table_rtx to
655 CALL_INSN_FUNCTION_USAGE when needed.
656 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
657 (call_value_pop, call_value, untyped_call): Likewise.
658 (call_exp, call_value_exp): Remove.
659 * config/i386/i386-protos.h: Update.
661 2002-05-22 Richard Henderson <rth@redhat.com>
663 * varasm.c (default_section_type_flags): Check for VAR_DECL
664 before using DECL_THREAD_LOCAL.
666 2002-05-22 David Edelsohn <edelsohn@gnu.org>
668 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
669 (STARTFILE_SPEC): Delete PE crt0.o.
670 * config/rs6000/aix51.h: Same.
671 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
672 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
673 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
674 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
675 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
677 2002-05-22 Richard Henderson <rth@redhat.com>
679 * varasm.c (default_section_type_flags): Handle tls data and
681 (default_unique_section): Handle tls sections.
683 2002-05-23 Alan Modra <amodra@bigpond.net.au>
685 * configure.in (CROSS): Define NATIVE_CROSS.
686 * configure: Regenerate.
687 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
688 (startfile_prefix_spec): New var.
689 (static_specs): Add startfile_prefix_spec.
690 (do_spec_2): Split out from..
692 (main): Process startfile_prefix_spec.
693 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
695 (STARTFILE_PREFIX_SPEC): Define.
696 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
699 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
701 * cpperror.c: Fix formatting.
702 * cppexp.c: Likewise.
703 * cppfiles.c: Likewise.
704 * cpphash.c: Likewise.
705 * cpphash.h: Likewise.
706 * cppinit.c: Likewise.
707 * cpplex.c: Likewise.
708 * cpplib.c: Likewise.
709 * cppmacro.c: Likewise.
710 * cppmain.c: Likewise.
711 * cppspec.c: Likewise.
713 2002-05-22 Jakub Jelinek <jakub@redhat.com>
715 * combine.c (force_to_mode): Use gen_int_mode.
716 Don't clear CONST_INT bits outside of mode.
718 2002-05-22 Richard Henderson <rth@redhat.com>
720 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
721 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
723 2002-05-22 Jakub Jelinek <jakub@redhat.com>
726 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
727 if DECL_SIZE_UNIT is INTEGER_CST.
729 2002-05-22 Richard Henderson <rth@redhat.com>
731 * flow.c (life_analysis): Delete broken reg_label check.
733 2002-05-22 Richard Henderson <rth@redhat.com>
735 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
736 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
738 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
740 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
741 (embed-bb.c): New rule.
742 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
743 * config/sh/embed_bb.c: Delete.
745 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
747 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
749 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
751 * config/h8300/h8300.md (*andorqi3): New.
753 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
756 * Makefile.in: Update.
757 * c-common.c (c_common_post_options): Add preprocessor
758 errors to the error count.
759 * c-lang.c (c_post_options): Kill.
760 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
761 * hooks.h: Add header guards.
762 * langhooks-def.h: Include hooks.h.
763 (LANG_HOOKS_POST_OPTIONS): Update.
764 * langhooks.h (struct lang_hooks): Update post_options.
765 * toplev.c (parse_options_and_default_flags): Update.
767 * objc-lang.c (objc_post_options): Kill.
768 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
770 2002-05-21 Bruce Korb <bkorb@gnu.org>
772 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
773 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
774 * fixinc/fixincl.x: regen.
776 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
778 * cfgbuild.c: Fix formatting.
780 * cfgcleanup.c: Likewise.
781 * cfglayout.c: Likewise.
782 * cfgloop.c: Likewise.
783 * cfgrtl.c: Likewise.
785 2002-05-21 Richard Henderson <rth@redhat.com>
787 * c-common.h (enum rid): Add RID_THREAD.
788 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
789 (grokdeclarator): Grok __thread.
790 * c-parse.in (reswords): Add __thread.
791 (rid_to_yy): Add RID_THREAD.
793 * tree.h (DECL_THREAD_LOCAL): New.
794 (struct tree_decl): Add thread_local_flag.
795 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
796 * tree.c (staticp): TLS variables are not static.
798 * target-def.h (TARGET_HAVE_TLS): New.
799 * target.h (have_tls): New.
800 * output.h (SECTION_TLS): New.
801 * varasm.c (assemble_variable): TLS variables can't be common for now.
802 (default_section_type_flags): Handle .tdata and .tbss.
803 (default_elf_asm_named_section): Handle SECTION_TLS.
804 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
806 * flags.h (flag_tls_default): Declare.
807 * toplev.c (flag_tls_default): Define.
808 (display_help): Display help for it.
809 (decode_f_option): Set it.
811 * doc/extend.texi (Thread-Local): New node describing language-level
812 thread-local storage.
813 * doc/invoke.texi (-ftls-model): Document.
815 * fixinc/inclhack.def (thread_keyword): New.
816 * fixinc/fixincl.x: Rebuild.
818 2002-05-21 Jeffrey A Law <law@redhat.com>
820 * optabs.c (expand_binop): For double-word integer multiplies,
821 do not compute intermediate results into something that is
822 not a register (such as a SUBREG or MEM).
824 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
825 (ix86_sched_reorder): Make sure to initialize scheduling
826 data even when there's only one insn in the ready queue.
828 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
830 * genautomata.c (reserv_sets_hash_value): Fix a typo.
832 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
834 * genautomata.c (reserv_sets_hash_value): Define hash_value as
835 set_el_t. Transform the hash value into unsigned.
836 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
837 (transform_3): Add code to process `(A,B)+(D,E)'.
839 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
841 * reload1.c (do_output_reload): Run delete_output_reload
844 2002-05-21 Roger Sayle <roger@eyesopen.com>
847 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
848 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
849 (can_store_by_pieces): ... and here to limit the largest mode used.
850 Add a comment to document this function.
852 2002-05-21 Richard Henderson <rth@redhat.com>
854 * flow.c (life_analysis): Fix test for deleted label.
856 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
858 * doc/tm.texi: Fix typo.
860 2002-05-21 Zack Weinberg <zack@codesourcery.com>
862 * c-common.c (c_common_init): Set options->unsigned_char from
864 (cb_register_builtins): Define __STRICT_ANSI__ and
865 __CHAR_UNSIGNED__ here...
866 * cppinit.c (init_builtins): Not here.
867 (cpp_create_reader): unsigned_char option defaults to 0, not
868 !DEFAULT_SIGNED_CHAR.
869 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
872 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
873 * cpphash.c (_cpp_init_hashtable): Don't set it.
874 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
875 directly. Clarify comment.
877 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
879 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
880 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
881 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
882 BASIC_BLOCK (n_basic_blocks - 1).
883 * cfganal.c (can_fallthru, flow_call_edges_add,
884 flow_preorder_transversal_compute): Too.
885 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
886 find_sub_basic_blocks): Too.
887 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
888 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
889 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
890 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
891 * combine.c (this_basic_block): Type changed to basic_block.
892 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
893 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
894 get_last_value, distribute_notes, distribute_links): Too.
895 * final.c (compute_alignments): Too.
896 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
897 * function.c (thread_prologue_and_epilogue_insns): Too.
898 * gcse.c (compute_code_hoist_vbeinout): Too.
899 * global.c (build_insn_chain): Too.
900 * ifcvt.c (find_if_block, find_cond_trap): Too.
901 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
902 * regmove.c (regmove_optimize): Too.
903 * resource.c (find_basic_block): Too.
904 * sched-ebb.c (schedule_ebbs): Too.
905 * ssa-dce.c (find_control_dependence, find_pdom): Too.
907 2002-05-21 Andreas Jaeger <aj@suse.de>
909 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
911 2002-05-21 Richard Henderson <rth@redhat.com>
913 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
914 unspec names, not numbers.
916 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
918 * doc/sourcebuild.texi: Mention snapshot-README and
919 snapshot-index.html as needing updating for new front ends.
921 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
923 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
924 disabling checking, and avoid multiple evaluation of RTX.
926 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
928 * bitmap.c (bitmap_find_bit): Return early if we have the correct
931 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
933 * profile.c (gen_edge_profiler): Set alias set before the memory is
936 2002-05-20 David S. Miller <davem@redhat.com>
938 * cselib.c (max_value_regs): New.
939 (cselib_lookup, cselib_invalidate_regno): Initialize it when
940 adding new entries to the REG_VALUES table and we are dealing with
942 (clear_table): Initialize it.
943 (cselib_invalidate_regno): Use it to determine which hard
944 registers to scan when mode is not VOIDmode.
946 2002-05-20 Duraid Madina <duraid@fl.net.au>
948 * tradcpp.c (fixup_newlines): Use old-style function header.
950 2002-05-20 Krister Walfridsson <cato@df.lth.se>
952 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
954 2002-05-20 H.J. Lu (hjl@gnu.org)
956 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
958 * config/mips/mips.h (DFMODE_NAN): Defined.
959 (SFMODE_NAN): Likewise.
961 2002-05-20 Dale Johannesen <dalej@apple.com>
963 * combine.c (cant_combine_insn_p): Back out my
966 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
968 * params.c: Fix formatting.
969 * params.h: Likewise.
970 * predict.c: Likewise.
971 * prefix.c: Likewise.
972 * print-rtl.c: Likewise.
973 * print-tree.c: Likewise.
974 * profile.c: Likewise.
976 2002-05-20 H.J. Lu (hjl@gnu.org)
978 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
980 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
982 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
983 switches straight on to the assembler, do not abbreviate them.
984 * config/arm/elf.h (ASM_SPEC): As above.
985 * config/arm/semi.h (ASM_SPEC): As above.
986 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
987 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
988 -mcpu=xscale on to the assembler by default.
989 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
991 2002-05-20 Richard Henderson <rth@redhat.com>
993 * cse.c (canon_hash): Reorder do_not_record test. Always
994 allow pic_offset_table_rtx.
996 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
998 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
999 (expand_binop): Ditto (3 times).
1001 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1003 * Makefile.in (distclean): Remove QMTest stuff.
1004 (QMTEST_PATH): New variable.
1005 (QMTESTFLAGS): Likewise.
1006 (QMTESTRUNFLAGS): Likewise.
1008 (QMTEST_GPP_TESTS): Likewise.
1009 (QMTEST_DIR): Likewise.
1010 (QMTEST_DIR/context): New target.
1011 (qmtest-g++): Likeise.
1012 (qmtest-gui): Likewise.
1013 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1015 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1017 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1018 an altivec register if TARGET_ALTIVEC.
1020 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1021 to ALTIVEC_VECTOR_MODE.
1022 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1023 (rs6000_va_arg): Vectors may go in registers if they are not
1026 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1028 * protoize.c: Fix formatting.
1030 2002-05-19 Richard Henderson <rth@redhat.com>
1032 * gensupport.c (init_include_reader): Merge into ...
1033 (process_include): ... here. Simplify composite path creation.
1034 Plug memory leaks. Fix file/line number tracking. Do not
1035 process_define_cond_exec. Return void.
1036 (process_rtx): Don't check process_include return value.
1038 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1040 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1042 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1043 traversing basic block chain.
1044 (create_basic_block_structure, create_basic_block): Declaration changed.
1045 (link_block, unlink_block): Declare.
1046 * cfg.c (entry_exit_blocks): Initialize new fields.
1047 (link_block, unlink_block): New.
1048 (expunge_block_nocompact): Unlink basic block.
1049 (dump_flow_info): Print prev_bb/next_bb fields.
1050 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1051 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1052 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1053 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1054 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1055 (verify_flow_info): Check that list agrees with numbering.
1057 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1059 * c-common.c (preprocessing_asm): New macro.
1060 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1064 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1065 (CPP_SPEC): Simplify.
1066 (TARGET_CPU_CPP_BUILTINS): Update.
1067 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1068 (CPP_SPEC): Simplify.
1069 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1070 (TARGET_OS_CPP_BUILTINS): Update.
1071 * osf.h (CPP_XFLOAT_SPEC): Kill.
1072 (TARGET_OS_CPP_BUILTINS): Update.
1073 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1074 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1075 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1076 (TARGET_OS_CPP_BUILTINS): Update.
1078 2002-05-19 Richard Henderson <rth@redhat.com>
1080 * varasm.c (default_binds_local_p): Fix typo.
1082 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1084 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1085 CONST_INT operand to the correct mode after adding 1 to it.
1087 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1089 * config.gcc (powerpc-wrs-windiss*): New target.
1091 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1093 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1096 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1098 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1100 * config.in: Regenerated.
1101 * configure: Regenerated.
1103 2002-05-19 Richard Henderson <rth@redhat.com>
1105 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1106 * target.h (struct gcc_target): Move boolean fields to the end.
1108 * varasm.c (default_binds_local_p): New.
1109 * output.h: Declare it.
1111 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1112 * config/cris/cris.c (cris_encode_section_info): Likewise.
1113 * config/i386/i386.c (i386_encode_section_info): Likewise.
1114 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1115 * config/sh/sh.c (sh_encode_section_info): Likewise.
1117 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1118 (TARGET_BINDS_LOCAL_P): New.
1120 2002-05-19 Richard Henderson <rth@redhat.com>
1122 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1123 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1124 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1126 * toplev.c (display_help): Kill -a -ax help.
1128 * config/1750a/1750a.h, config/alpha/alpha.h,
1129 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1130 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1131 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1132 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1134 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1135 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1137 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1138 (ix86_output_function_block_profiler): Kill.
1139 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1140 (m68hc11_function_block_profiler): Kill.
1141 * config/m68hc11/m68hc11-protos.h: Update.
1142 * config/m88k/m88k.c (output_block_profiler): Kill.
1143 (output_function_block_profiler): Kill.
1144 * config/m88k/m88k-protos.h: Update.
1146 2002-05-19 Richard Henderson <rth@redhat.com>
1148 * system.h (STRIP_NAME_ENCODING): Poison it.
1149 * output.h (STRIP_NAME_ENCODING): Remove.
1150 (default_strip_name_encoding): Declare.
1151 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1152 * target.h (strip_name_encoding): New.
1153 * varasm.c (default_strip_name_encoding): New.
1155 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1156 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1157 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1158 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1159 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1160 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1161 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1162 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1163 config/v850/v850.h: Use the hook, not the macro.
1165 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1166 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1167 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1168 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1169 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1170 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1171 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1172 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1173 config/v850/v850.c, config/v850/v850.h:
1174 Move STRIP_NAME_ENCODING to out-of-line function and add
1175 TARGET_STRIP_NAME_ENCODING.
1177 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1178 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1179 with TARGET_STRIP_NAME_ENCODING referencing existing function;
1180 make function static.
1182 * xcoffout.c: Include target.h
1183 * Makefile.in (xcoffout.o): Update.
1185 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1186 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1187 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1188 reloc argument unused.
1189 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1191 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1192 STRIP_NAME_ENCODING docs.
1194 2002-05-19 Andreas Jaeger <aj@suse.de>
1196 * gengenrtl.c: Add prototype for excluded_rtx.
1198 * real.h: Add prototype for exact_real_truncate.
1200 2002-05-18 Richard Henderson <rth@redhat.com>
1202 * system.h (ENCODE_SECTION_INFO): Poison it.
1203 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1204 * target.h (encode_section_info): New.
1205 * varasm.c (make_decl_rtl, output_constant_def): Use it.
1206 * hooks.c (hook_tree_int_void): New.
1207 * hooks.h: Declare it.
1209 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1210 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1211 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1212 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1213 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1214 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1215 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1216 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1217 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1218 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1219 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1220 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1221 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1222 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1223 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1224 referencing existing function. Make function static.
1226 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1227 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1228 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1229 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1230 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
1231 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
1232 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
1233 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
1234 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
1235 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
1236 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
1237 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
1238 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
1239 Move ENCODE_SECTION_INFO to out-of-line function and add
1240 TARGET_ENCODE_SECTION_INFO.
1242 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
1243 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1245 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
1247 (switch_to_section): Replace in_rdata case with in_readonly_data.
1249 * config/h8300/h8300.c (h8300_encode_label): Make static.
1250 * config/h8300/h8300-protos.h: Update.
1252 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
1253 from rs6000_encode_section_info; make static.
1254 (rs6000_xcoff_encode_section_info): New.
1256 * config/v850/v850.c (v850_encode_data_area): Make static.
1257 * config/v850/v850-protos.h: Update.
1259 * config/vax/vax.c: Include flags.h.
1260 (vms_select_section): Fix typo.
1262 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
1263 ENCODE_SECTION_INFO docs.
1265 2002-05-18 Richard Henderson <rth@redhat.com>
1267 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
1268 REGISTER_TARGET_PRAGMAS.
1269 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
1271 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
1273 2002-05-18 Richard Henderson <rth@redhat.com>
1275 * system.h (SELECT_RTX_SECTION): Poison.
1276 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
1277 * target.h (select_rtx_section): New.
1278 * varasm.c (output_constant_pool): Use it.
1279 (default_select_rtx_section, default_elf_select_rtx_section): New.
1280 * output.h: Declare them.
1282 * config/darwin.h (SELECT_RTX_SECTION): Move ...
1283 * config/darwin.c (machopic_select_rtx_section): ... here.
1284 * config/darwin-protos.h: Update.
1286 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
1287 * config/nextstep.c (machopic_select_rtx_section): ... here.
1288 (nextstep_select_section): Rename variable to avoid macro clash.
1289 * config/nextstep-protos.h: Update.
1291 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
1292 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
1293 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
1294 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
1295 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
1296 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
1297 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
1298 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
1299 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
1300 (SELECT_RTX_SECTION): Remove.
1302 * config/darwin.h, config/elfos.h, config/nextstep.h,
1303 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
1304 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
1305 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
1306 config/sparc/lynx.h, config/xtensa/xtensa.c
1307 (TARGET_ASM_SELECT_RTX_SECTION): New.
1309 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
1310 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
1311 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
1312 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
1313 (ia64_aix_select_rtx_section): New.
1314 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
1316 * config/mips/mips.c (mips_select_rtx_section): Make static.
1317 Support ELF SHF_MERGE features.
1318 * config/mips/mips-protos.h: Update.
1319 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
1320 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
1321 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
1322 make static, fall back to default_elf_select_rtx_section.
1323 * config/rs6000/rs6000-protos.h: Update.
1324 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
1325 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
1326 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
1327 * config/romp/romp.c (romp_select_rtx_section): New.
1328 * config/s390/s390.c (s390_select_rtx_section): New.
1329 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
1330 declarations before target macro definition.
1331 (xtensa_emit_call): Use static buffer.
1332 (xtensa_select_rtx_section): New.
1333 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
1334 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
1335 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
1337 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
1338 SELECT_RTX_SECTION docs.
1340 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1342 * i386.md (movsi/movdi): Fix template.
1343 (sse2 patterns): Set attributes consistently.
1345 * i386.md (pushqi2, ashrqi_*): Fix constraint.
1347 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
1349 * optabs.c (complex_part_zero_p): New.
1350 * (expand_cmplxdiv_straight): Use it.
1351 * (expand_cmplxdiv_wide): Ditto.
1352 * (expand_binop): Ditto.
1354 2002-05-18 Richard Henderson <rth@redhat.com>
1356 * final.c (HAVE_READONLY_DATA_SECTION): New.
1357 (shorten_branches): Use it instead of ifdefs.
1358 * varasm.c (enum in_section): Add in_readonly_data.
1359 (text_section, data_section): Tidy.
1360 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
1362 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
1363 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
1364 (READONLY_DATA_SECTION): Don't undef.
1366 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
1367 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
1368 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
1370 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
1371 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
1372 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
1373 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
1375 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
1376 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
1377 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1378 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
1379 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
1380 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
1381 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
1382 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
1383 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
1385 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
1386 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
1387 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
1388 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
1389 config/pa/pa64-hpux.h, config/sparc/litecoff.h
1390 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1392 * config/elfos.h, config/netware.h, config/svr3.h,
1393 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1394 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1395 config/h8300/h8300.h, config/i386/i386-interix.h,
1396 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1397 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
1399 * config/elfos.h, config/netware.h, config/svr3.h,
1400 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1401 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
1402 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1403 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
1405 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
1406 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
1407 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
1408 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
1409 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
1410 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
1411 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
1412 config/rs6000/sysv4.h, config/v850/v850.h
1413 (EXTRA_SECTIONS): Remove in_const/in_rdata.
1414 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
1416 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
1417 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
1418 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
1419 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
1420 * config/alpha/alpha.c (alpha_start_function): Likewise.
1421 (alpha_write_linkage): Likewise.
1422 * config/m32r/m32r.c (m32r_select_section): Likewise.
1423 * config/m88k/m88k.c (m88k_select_section): Likewise.
1424 * config/mips/mips.c (mips_select_rtx_section): Likewise.
1425 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
1426 (rs6000_elf_select_section): Likewise.
1427 * config/v850/v850.c (v850_select_section): Likewise.
1429 * config/1750a/1750a.h, config/i860/sysv3.h
1430 (READONLY_DATA_SECTION_ASM_OP): New.
1431 READONLY_DATA_SECTION_ASM_OP.
1432 * config/i386/interix.c, config/i386/winnt.c
1433 (i386_pe_unique_section): Always use .rdata prefix.
1434 * config/pa/som.h (readonly_data): Always switch to read-only section.
1435 (READONLY_DATA_SECTION): Predicate on flag_pic.
1436 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
1437 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
1438 (READONLY_DATA_SECTION): Update.
1440 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
1442 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
1443 is used without -Wformat.
1444 * c-common.h (warn_format_zero_length): Declare extern.
1445 * c-decl.c (warn_options): Add "format-zero-length".
1446 * c-format.c (warn_format_zero_length): Declare.
1447 (set_Wformat): Set warn_format_zero_length for -Wformat.
1448 (check_format_info): Only warn about zero-length formats if
1449 warn_format_zero_length is true. Include the format type
1450 name in the warning message.
1451 * doc/invoke.texi: Document -Wformat-zero-length.
1452 * testsuite/gcc.dg/format/zero-length-1.c: New test.
1454 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
1456 * timevar.c: Fix formatting.
1457 * tlink.c: Likewise.
1458 * toplev.c: Likewise.
1459 * tree-dump.c: Likewise.
1460 * tree-inline.c: Likewise.
1462 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1464 * cppinit.c (cpp_post_options): If preprocessed, turn off
1465 traditional. If traditional, turn off column numbers.
1466 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
1467 * cpptrad.c (handle_newline): Update line_base.
1468 (skip_comment): Handle -Wcomment.
1470 2002-05-17 Zack Weinberg <zack@codesourcery.com>
1472 * cppinit.c (struct builtin): Remove unused fields.
1473 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
1474 (operator_array): New - was second half of builtin_array.
1475 (init_builtins): Simplify loop over builtin_array/operator_array.
1477 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1479 * defaults.h (UNIQUE_SECTION): Remove.
1480 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
1482 2002-05-17 Richard Henderson <rth@redhat.com>
1484 * expr.c (init_expr_once): Don't use start/end_sequence.
1485 Use rtx_alloc instead of emit_insn.
1486 * toplev.c (lang_dependent_init): Run init_expr_once here ...
1487 (lang_independent_init): ... not here.
1489 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1491 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
1493 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1495 * config/avr/avr.c (avr_regs_to_save): New function. Also check
1496 for fixed registers, possibly used for global register variables.
1497 (initial_elimination_offset, avr_output_function_prologue,
1498 avr_output_function_epilogue): Move common code to avr_regs_to_save.
1500 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
1502 * Makefile.in: Update for cpptrad.c.
1503 * cpphash.h (struct cpp_buffer): New members for buffer
1505 (struct cpp_reader): New members for traditional output.
1506 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
1507 * cppinit.c (cpp_create_reader): Set trad_line.
1508 (cpp_destroy): Free trad_out_base if used.
1509 (cpp_read_main_file): Overlay an empty buffer if traditional.
1510 (cpp_finish_options): Don't do builtins.
1511 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
1512 (cpp_handle_option): Handle it.
1513 * cpplex.c (continue_after_nul): New.
1514 (_cpp_lex_direct): Use handle_nul.
1515 * cpplib.h (struct cpp_options): New traditional option.
1516 * cpptrad.c: New file.
1518 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
1520 * c-common.c (c_common_init_options): Use C89 for Objective-C,
1521 and set the options flag.
1522 * cppinit.c (lang_flags): Remove objc.
1523 (lang_defaults): Remove OBJC and OBJCXX.
1525 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
1526 (cpp_handle_option): Remove -+ and -lang-objc++.
1527 For ObjC, just set a flag.
1528 (print_help): Update.
1529 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
1531 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1533 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
1534 bootstrap with -mips3.
1536 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
1538 * final.c: Fix formatting.
1539 * fix-header.c: Likewise.
1541 * fold-const.c: Likewise.
1542 * function.c: Likewise.
1544 2002-05-17 David S. Miller <davem@redhat.com>
1546 PR c/6689, PR optimization/6615
1547 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
1548 and make it a pointer to rtx. Update comments.
1549 (update_equiv_regs): When scanning for equivalences, record
1550 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
1551 it while making the equiv replacements.
1553 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1555 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
1557 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
1559 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
1560 when encoding visibility into SYMBOL_REF_FLAG.
1562 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
1564 * expr.c (force_operand): Fix reversed move.
1566 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
1568 * doc/install.texi (Testing): Mention two common DejaGnu warnings
1569 that can be ignored.
1571 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1573 * doc/install.texi (Final install): Recommend to install into a
1574 "clean" target directory.
1576 2002-05-17 Richard Henderson <rth@redhat.com>
1578 * config/ia64/ia64.md: Use braced strings instead of quoted strings
1579 for code blocks. Tidy whitespace.
1581 2002-05-17 Richard Henderson <rth@redhat.com>
1583 * hooks.c (hook_tree_bool_false): New.
1584 * hooks.h: Declare it.
1585 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
1586 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
1587 * target.h (select_section, unique_section): New.
1588 (in_small_data_p): New.
1589 * varasm.c (resolve_unique_section): Use hooks instead of macros.
1590 (variable_section, output_constant_def_contents): Likewise.
1591 (default_select_section, default_unique_section): New.
1592 (categorize_decl_for_section, default_elf_select_section): New.
1593 * output.h: Declare them.
1595 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
1596 (TARGET_ASM_SELECT_SECTION): New.
1597 (SELECT_SECTION): Move ...
1598 * config/darwin.c (machopic_select_section): ... here.
1599 * config/darwin-protos.h: Update.
1601 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
1602 (SELECT_SECTION): Move ...
1603 * config/nextstep.c (nextstep_select_section): ... here.
1604 * config/nextstep-protos.h: Update.
1606 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
1607 (TARGET_ASM_SELECT_SECTION): New.
1608 * config/svr3.h (SELECT_SECTION): Remove.
1610 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
1611 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
1612 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
1613 (alpha_encode_section_info): Use it.
1614 * config/alpha/alpha-protos.h: Update.
1615 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
1616 (SELECT_SECTION, UNIQUE_SECTION): Remove.
1617 (TARGET_ASM_SELECT_SECTION): New.
1618 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
1620 * config/arm/pe.h (UNIQUE_SECTION): Remove.
1621 (TARGET_ASM_UNIQUE_SECTION): New.
1623 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
1624 (avr_unique_section): Rename from unique_section; make static.
1625 * config/avr/avr-protos.h: Update.
1626 * config/avr/avr.h (UNIQUE_SECTION): Remove.
1628 * config/c4x/c4x.h (SELECT_SECTION): Remove.
1630 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
1631 (TARGET_ASM_UNIQUE_SECTION): New.
1632 * config/i386/i386-interix.h: Likewise.
1633 * config/i386/win32.h: Likewise.
1634 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
1635 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
1636 * config/i386/sco5.h (SELECT_SECTION): Remove.
1637 (TARGET_ASM_SELECT_SECTION): New.
1638 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
1640 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
1641 instead of SELECT_SECTION.
1642 * config/m68k/dpx2.h: Likewise.
1643 * config/rs6000/lynx.h: Likewise.
1645 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
1646 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
1647 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
1648 (ia64_in_small_data_p): New.
1649 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
1650 (ia64_aix_select_section, ia64_aix_unique_section): New.
1651 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
1652 (SELECT_SECTION, UNIQUE_SECTION): Remove.
1654 * config/m32r/m32r.h (SELECT_SECTION): Remove.
1655 (TARGET_ASM_SELECT_SECTION): New.
1656 * config/m32r/m32r.c (m32r_select_section): Take align argument.
1657 * config/m32r/m32r-protos.h: Update.
1659 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
1660 (SELECT_SECTION): Move ...
1661 * config/m88k/m88k.c (m88k_select_section): ... here.
1663 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
1664 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
1665 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
1666 (mcore_unique_section): Make static.
1667 * config/mcore/mcore-protos.h: Update.
1669 * config/mips/elf.h (UNIQUE_SECTION): Remove.
1670 (TARGET_ASM_UNIQUE_SECTION): New.
1671 * config/mips/elf64.h: Likewise.
1672 * config/mips/iris6gld.h: Likewise.
1673 * config/mips/linux.h: Likewise.
1674 * config/mips/mips-protos.h: Update.
1675 * config/mips/mips.c (mips_select_section): Add align argument.
1676 * config/mips/mips.h (SELECT_SECTION): Remove.
1677 (TARGET_ASM_SELECT_SECTION): New.
1679 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
1680 * config/mmix/mmix.c (mmix_select_section): Remove.
1681 (mmix_unique_section): Remove.
1682 * config/mmix/mmix-protos.h: Update.
1684 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
1685 (SELECT_SECTION): Move ...
1686 * config/pa/pa.c (pa_select_section): ... here.
1687 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
1689 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
1690 from rs6000_select_section and make static.
1691 (rs6000_elf_unique_section): Similarly.
1692 (rs6000_xcoff_select_section): From xcoff.h.
1693 (rs6000_xcoff_unique_section): Likewise.
1694 * config/rs6000/rs6000-protos.h: Update.
1695 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
1696 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
1697 * config/rs6000/xcoff.h: Likewise.
1699 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
1700 (SELECT_SECTION): Move ...
1701 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
1703 * config/v850/v850.h (SELECT_SECTION): Move ...
1704 * config/v850/v850.c (v850_select_section): ... here.
1705 (TARGET_ASM_SELECT_SECTION): New.
1707 * config/vax/vms.h (SELECT_SECTION): Move ...
1708 * config/vax/vax.c (vms_select_section): ... here.
1709 (TARGET_ASM_SELECT_SECTION): New.
1711 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
1712 for the target hooks.
1714 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
1716 * config/arm/arm.c (emit_multi_reg_push): Do not set
1717 RTX_FRAME_RELATED_P on the SEQUENCE.
1719 2002-05-16 Richard Henderson <rth@redhat.com>
1721 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
1722 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
1724 2002-05-16 Richard Henderson <rth@redhat.com>
1726 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
1728 * config/ia64/ia64.c (saveable_obstack): Do not declare.
1730 2002-05-16 Richard Henderson <rth@redhat.com>
1732 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
1733 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
1734 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
1735 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
1736 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
1737 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
1738 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
1739 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
1740 Revert "Basic block renumbering removal", and two followup patches.
1742 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
1744 * lcm.c (optimize_mode_switching): Revert previous change.
1746 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1748 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
1749 with only extant block numbers.
1751 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
1753 * lcm.c (optimize_mode_switching): Fix typo.
1755 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1757 * flow.c (calculate_global_regs_live): Queue blocks in program order.
1759 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1761 * doc/install.texi (Configuration): Document PWDCMD.
1763 2002-05-16 Dale Johannesen <dalej@apple.com>
1765 * combine.c (cant_combine_insn_p): Reenable combinations
1766 involving hard regs unless CLASS_LIKELY_SPILLED_P.
1768 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1770 * c-common.c (cb_register_builtins): Handle more built-ins
1771 here rather than in gcc.c specs.
1772 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
1773 (cpp_options): Pass -O flags even when only preprocessing.
1774 * toplev.c (set_fast_math_flags): New prototype.
1775 (fast_math_flags_set_p): New.
1776 (set_no_fast_math_flags): Remove.
1777 (decode_f_option): Update.
1778 * toplev.h (set_fast_math_flags): Update.
1779 (fast_math_flags_set_p): New.
1780 (set_no_fast_math_flags): Remove.
1782 * c4x/c4x.c (c4x_override_options): Update.
1784 2002-05-16 Zack Weinberg <zack@codesourcery.com>
1786 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
1787 Default-define here.
1788 (builtin_define_with_value): Can now wrap the expansion in
1789 quotation marks if such is wanted.
1790 (cb_register_builtins): Update calls to builtin_define_with_value.
1791 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
1793 (c_common_init): Set options->stdc_0_in_system_headers.
1794 * c-lex.h: Update prototype of builtin_define_with_value.
1795 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
1796 and REGISTER_PREFIX.
1798 * cppinit.c (VERS, ULP, C, X): Kill.
1799 (builtin_array): Remove entries for __VERSION__,
1800 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
1801 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
1803 (init_builtins): Kill off a bunch of now-dead code.
1804 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
1805 -fno-leading-underscore.
1806 (cpp_handle_option): Remove code to set user_label_prefix.
1807 (cpp_post_options): Likewise.
1809 * cpplib.h (struct cpp_options): Remove user_label_prefix.
1810 (stdc_0_in_system_headers): New.
1811 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
1812 stdc_0_in_system_headers) too to decide the value of __STDC__.
1814 * tradcpp.c (user_label_prefix): Kill.
1815 (main): Remove code handling -f(no-)leading-underscore.
1816 (initialize_builtins): Don't define __REGISTER_PREFIX__
1817 or __USER_LABEL_PREFIX__.
1818 (install_value): Wrap compound statement in dummy loop so the
1819 macro works properly in an if statement.
1822 2002-05-16 Janis Johnson <janis187@us.ibm.com>
1824 * loop.h (struct loop_info): Add member has_prefetch.
1825 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
1826 (prescan_loop): Initialize has_prefetch.
1827 (struct prefetch_info): Change prefetch_in_loop and
1828 prefetch_before_loop from bit fields to ints.
1829 (emit_prefetch_instructions): Several small fixes.
1830 (check_dbra_loop): Don't reverse loop that uses prefetch.
1832 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1834 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
1835 * configure.in: Likewise.
1836 * fixinc/check.tpl: Likewise.
1837 * fixinc/fixinc.dgux: Likewise.
1838 * fixinc/fixinc.svr4: Likewise.
1839 * fixinc/fixinc.winnt: Likewise.
1840 * fixinc/fixincl.sh: Likewise.
1841 * fixproto: Likewise.
1842 * configure: Regenerate.
1844 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1846 Basic block renumbering removal:
1847 * basic_block.h (struct basic_block_def): Renamed index to sindex,
1848 added prev_bb and next_bb fields.
1849 (n_basic_blocks): Renamed to num_basic_blocks.
1850 (last_basic_block): New, index of last basic block.
1851 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1852 traversing basic block chain.
1853 (BLOCK_NUM): index -> sindex.
1854 (create_basic_block_structure, create_basic_block): Declaration changed.
1855 (debug_num2bb): Declare.
1856 (expunge_block_nocompact): Declaration removed.
1857 (link_block, unlink_block, compact_blocks): Declare.
1858 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
1859 * cfg.c (entry_exit_blocks): Initialize new fields.
1860 (clear_edges, alloc_block, expunge_block, cached_make_edge,
1861 redirect_edge_pred, dump_flow_info, dump_edge_info,
1862 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
1863 free_aux_for_edges): Modified.
1864 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
1865 (expunge_block_nocompact): Removed.
1866 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
1867 find_unreachable_blocks, create_edge_list, print_edge_list,
1868 verify_edge_list, flow_edge_list_print, remove_fake_successors,
1869 remove_fake_edges, flow_reverse_top_sort_order_compute,
1870 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1871 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
1872 flow_dfs_compute_reverse_execute): Modified.
1873 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
1874 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
1876 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1877 merge_blocks_move_predecessor_nojumps,
1878 merge_blocks_move_successor_nojumps, merge_blocks,
1879 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
1880 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
1881 * cfglayout.c (skip_insns_after_block, label_for_bb,
1882 record_effective_endpoints, scope_to_insns_finalize,
1883 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
1884 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
1885 cfg_layout_duplicate_bb): Modified.
1886 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
1887 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1888 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
1889 flow_loops_find, flow_loop_outside_edge_p): Modified.
1890 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1891 flow_delete_block, compute_bb_for_insn, split_block,
1892 try_redirect_by_replacing_jump, redirect_edge_and_branch,
1893 force_nonfallthru_and_redirect, tidy_fallthru_edge,
1894 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
1895 commit_edge_insertions, commit_edge_insertions_watch_calls,
1896 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
1897 purge_all_dead_edges): Modified.
1898 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
1899 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1900 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
1902 * conflict.c (conflict_graph_compute): Modified.
1903 * df.c (FOR_ALL_BBS): Removed.
1904 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1905 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
1906 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
1907 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
1908 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1909 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
1910 * final.c (compute_alignments, final_scan_insn): Modified.
1911 * flow.c (verify_local_live_at_start, update_life_info,
1912 update_life_info_in_dirty_blocks, free_basic_block_vars,
1913 delete_noop_moves, calculate_global_regs_live,
1914 initialize_uninitialized_subregs, allocate_bb_life_data,
1915 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
1916 mark_used_reg, count_or_remove_death_notes): Modified.
1917 * function.c (thread_prologue_and_epilogue_insns): Modified.
1918 * gcse.c (struct null_pointer_info): Change typo of current_block
1920 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
1921 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
1922 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
1923 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
1924 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
1925 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
1926 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
1927 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
1928 pre_delete, one_pre_gcse_pass, compute_transpout,
1929 invalidate_nonnull_info, delete_null_pointer_checks_1,
1930 free_code_hoist_mem, compute_code_hoist_vbeinout,
1931 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1932 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
1933 compute_store_table, build_store_vectors, insert_insn_start_bb,
1934 insert_store, replace_store_insn, free_store_memory, store_motion):
1936 * global.c (global_alloc, global_conflicts, mark_elimination,
1937 build_insn_chain): Modified.
1938 * graph.c (print_rtl_graph_with_bb): Modified.
1939 * haifa-sched.c (sched_init): Modified.
1940 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1941 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
1942 if_convert): Modified.
1943 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
1944 compute_insert_delete, pre_edge_lcm, compute_available,
1945 compute_farthest, compute_nearerout, compute_rev_insert_delete,
1946 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
1948 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
1949 * loop.c (loop_dump_aux): Modified.
1950 * predict.c (combine_predictions_for_insn, estimate_probability,
1951 last_basic_block_p, process_note_prediction, process_note_predictions,
1952 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
1953 expensive_function_p, estimate_bb_frequencies,
1954 compute_function_frequency): Modified.
1955 * print-rtl.c (print_rtx): Modified.
1956 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
1957 get_exec_counts, compute_branch_probabilities, compute_checksum,
1958 branch_prob, find_spanning_tree): Modified.
1959 * recog.c (split_all_insns, peephole2_optimize): Modified.
1960 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
1961 convert_regs_1, convert_regs_2, convert_regs): Modified.
1962 * regclass.c (scan_one_insn, regclass): Modified.
1963 * regmove.c (mark_flags_life_zones, regmove_optimize,
1964 combine_stack_adjustments): Modified.
1965 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
1966 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
1967 * reorg.c (dbr_schedule): Modified.
1968 * resource.c (find_basic_block, init_resource_info): Modified.
1969 * sbitmap.c (sbitmap_intersection_of_succs,
1970 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
1971 sbitmap_union_of_preds): Modified.
1972 * sched-deps.c (init_dependency_caches): Modified.
1973 * sched-ebb.c (schedule_ebbs): Modified.
1974 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
1975 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
1976 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
1977 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
1978 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
1979 ssa_const_prop): Modified.
1980 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
1981 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
1982 * ssa.c (remove_phi_alternative, find_evaluations,
1983 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
1984 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
1985 make_regs_equivalent_over_bad_edges,
1986 make_equivalent_phi_alternatives_equival,
1987 compute_conservative_reg_partition,
1988 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
1989 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
1992 2002-05-16 Mark Mitchell <mark@codesourcery.com>
1994 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
1996 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
1998 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
1999 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2000 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2001 calling CONSTANT_POOL_ADDRESS_P.
2002 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2003 to decide whether to define __arm__ or __thumb.
2004 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2005 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2007 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2009 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2011 (TARGET_CPU_CPP_BUILTINS): New.
2013 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2015 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2016 * cppmacro.c (cpp_macro): Remove.
2017 (enter_macro_context, replace_args, warn_of_redefinition,
2018 _cpp_create_definition, cpp_macro_definition): Update.
2020 2002-05-16 Jason Merrill <jason@redhat.com>
2022 * config/mips/mips.c (mips_output_external): Don't do sdata
2023 optimization for a variable with DECL_COMDAT set.
2025 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2027 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2028 Cleanups for accepting modifiers on pointers.
2029 Fix predicate typos.
2030 Allow long pointers as well as int pointers.
2032 2002-05-15 Richard Henderson <rth@redhat.com>
2034 * varasm.c (merge_weak): Remove special case for extern and common.
2036 2002-05-15 Matt Hiller <hiller@redhat.com>
2038 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2040 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2041 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2042 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2043 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2044 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2045 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2047 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2049 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2051 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2053 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2054 ("altivec_mfvscr"): Read from VSCR.
2056 Add vscr sets for the following insns: altivec_vctuxs,
2057 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2058 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2059 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2060 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2061 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2062 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2063 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2064 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2065 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2066 altivec_vsum2sws, altivec_vsumsws.
2068 * config/rs6000/rs6000.h: Add VSCR fixed register.
2069 (CALL_REALLY_USED_REGISTERS): Add vscr.
2070 (CALL_USED_REGISTERS): Same.
2071 (FIXED_REGISTERS): Same.
2072 (REG_ALLOC_ORDER): Same.
2073 (reg_class): Add VSCR_REGS.
2074 (REG_CLASS_NAMES): Same.
2075 (REG_CLASS_CONTENTS): Same.
2077 (REGISTER_NAMES): Add vscr.
2078 (DEBUG_REGISTER_NAMES): Same.
2079 (ADDITIONAL_REGISTER_NAMES): Same.
2080 (FIRST_PSEUDO_REGISTER): Increment.
2081 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2083 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2085 * fold-const.c (fold): Fix a typo.
2087 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2089 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2090 comparison against the highest or lowest integer value before
2091 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2092 transformation and that of an unsigned comparison against 0
2095 2002-05-15 Richard Henderson <rth@redhat.com>
2097 * varasm.c (merge_weak): Error for any weakening after definition.
2098 Adjust weakening after use warning to catch more cases.
2099 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2100 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2102 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2104 * invoke.texi (-malign-double): Re-add lost warning.
2106 * i386-protos.h (x86_output_mi_thunk): Declare.
2107 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2108 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2110 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2111 when flag_asynchronous_unwind_tables is set.
2113 * flags.h (flag_reorder_functions): Declare.
2114 * function.c (prepare_function_start): Initialize frequnecy.
2115 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2116 * Makefile.in (predict.o): Add dependency on target.h and params.h
2117 * defaults.h (HOT_TEXT_SECTION_NAME,
2118 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2119 * predict.c (choose_function_section): New function.
2120 (estimate_bb_frequencies): Use it.
2121 * toplev.c (flag_reorder_functions): New global variable.
2122 (lang_independent_options): New.
2123 (parse_options_and_default_flags): Set.
2124 * varasm.c (assemble_start_function): Bypass functdion alignment
2125 for never executed functions.
2126 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2127 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2128 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2131 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2133 * predict.c: Inlude profile.h
2134 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2135 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2136 Use the information about maximal counter in the program.
2138 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2140 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2141 probably_never_executed_bb_p): New functions.
2142 * cfgcleanup.c (outgoing_edges_match): Use them.
2143 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2144 (maybe_hot_bb_p, probably_cold_bb_p,
2145 probably_never_executed_bb_p): New functions.
2147 * function.h (function): Add new field function_frequency.
2148 * predict.c (compute_function_frequency): New function.
2149 (estimate_probability): Call it.
2151 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2153 PR optimization/5172, optimization/5200
2154 * gcse.c (gcse_main): Disable store_motion.
2156 2002-05-14 Zack Weinberg <zack@codesourcery.com>
2158 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2159 (c_common_nodes_and_builtins): Use it.
2160 (builtin_define_with_value): New function.
2161 (cb_register_builtins): Define __SIZE_TYPE__,
2162 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2163 using builtin_define_with_value. Use consistent notation when
2164 defining __GXX_WEAK__.
2165 (WCHAR_TYPE_SIZE): Don't redefine.
2166 (combine_strings): Don't use WCHAR_TYPE_SIZE.
2168 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2169 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2170 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2171 * tradcpp.c (initialize_builtins): Likewise.
2172 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2174 * c-lex.h (builtin_define_with_value): Prototype.
2175 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2176 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2177 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2179 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2180 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2181 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2182 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2183 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2184 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2185 config/sparc/sol2-bi.h, config/sparc/sparc.h:
2186 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
2187 to __SIZE_TYPE__ etc from all spec strings. When this makes
2188 extra specs empty, delete them.
2190 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
2192 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2193 for PA8000 or generating dwarf2 call frame information.
2194 (output_call): Remove DO_FRAME_NOTES check from return pointer
2196 (following_call): Return 0 when scheduling for PA8000 or generating
2197 dwarf2 call frame information. Revise comment.
2199 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2202 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2203 and __IEEE_FP_INEXACT as appropriate.
2204 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2205 (CPP_SPEC): Remove ieee defines.
2206 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2208 2002-05-14 Richard Henderson <rth@redhat.com>
2210 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2211 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2213 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2215 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2217 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2218 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2219 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2220 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2221 (EXTRA_SPECS): Update.
2222 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2223 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2224 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2225 define TARGET_OS_CPP_BUILTINS if necessary.
2227 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2229 * gcc.c (cpp_options): Must pass -m* and -f* options
2230 to the front end even when only preprocessing.
2231 (cc1_options): Remove redundant -lang-c.
2232 * tradcpp.c (main): Ignore -m options.
2234 * lang-specs.h: Similarly.
2236 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
2238 * genautomata.c (transform_3): Add code for transformation
2239 `(A,B,...)+C -> A+C,B,...'.
2241 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
2243 * final.c (end_final): Do not output profile_arcs constructor, when
2244 no functions are instrumented.
2246 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
2248 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
2250 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2252 * doc/install.texi: Remove special markup originally required for
2253 HTML generation with texi2html.
2255 2002-05-14 Andreas Schwab <schwab@suse.de>
2257 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
2259 (UNIQUE_SECTION): Define to get small data correctly.
2261 * varasm.c (resolve_unique_section): Add third parameter
2262 flag_function_or_data_sections and use it instead of
2263 flag_function_sections.
2264 (assemble_start_function): Pass flag_function_sections.
2265 (asm_emit_uninitialised): Pass flag_data_sections.
2266 (assemble_variable): Likewise.
2268 2002-05-14 Richard Henderson <rth@redhat.com>
2270 * config/i386/i386.md: Use define_constants for unspec numbers.
2271 * config/i386/i386.c: Likewise.
2273 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2275 * doc/contrib.texi: Update my entry.
2277 2002-05-13 Mark Mitchell <mark@codesourcery.com>
2279 * fixinc/inclhack.def (winidss_valist): Limit applicability.
2280 * fixinc/fixincl.x: Regenerated.
2281 * fixinc/tests/base/math.h: Update.
2282 * fixinc/tests/base/testing.h: Likewise.
2284 2002-05-13 Zack Weinberg <zack@codesourcery.com>
2286 * genattr.c (gen_attr): Don't emit a comma after the last
2289 2002-05-13 Richard Henderson <rth@redhat.com>
2291 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
2293 * recog.c (peephole2_optimize): Likewise.
2295 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
2297 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
2300 2002-05-13 Jeffrey A Law (law@redhat.com)
2302 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
2303 Update prototype and callers.
2304 (propagate_one_insn): Stack pointer adjustments kill MEMs on
2305 the mem_set_list which reference the stack pointer, as do
2306 calls to constant functions as they may clobber outgoing
2309 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
2311 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2312 (ia32_multipass_dfa_lookahead): New function.
2314 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2316 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
2317 (translate_options): Remove 'V'.
2318 (process_command): Similarly.
2320 * invoke.texi: Remove documentation of 'V'.
2322 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2324 * config/s390/linux.h: Revert 2002-04-22 changes.
2326 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
2328 * config/fr30/fr30.md: Only allow splits of immediate loads
2329 if the destination is a register.
2331 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2333 * Makefile.in (c-common.o, cppinit.o): Update.
2334 * c-common.c: Include except.h.
2335 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
2336 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
2337 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
2338 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
2339 CPP_PREDEFINES): Handle here.
2341 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
2342 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
2343 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
2344 TARGET_OS_CPP_BUILTINS.
2345 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
2346 (CPP_SPEC, EXTRA_SPECS): Update.
2347 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
2348 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
2349 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
2350 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
2351 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
2353 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
2354 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
2356 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2358 * emit-rtl.c (global_rtl): Update comment.
2359 (const_double_htab, const_double_htab_hash,
2360 const_double_htab_hash, lookup_const_double): New.
2361 (const_int_htab_hash, const_int_htab_eq): Remove const
2362 qualifiers, which cause tons of warnings with RTL checking on.
2363 (gen_rtx_CONST_DOUBLE): Deleted.
2364 (const_double_from_real_value): New function - bears some
2365 resemblance to the former immed_real_const_1.
2366 (immed_double_const): Moved here from varasm.c and
2368 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
2369 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
2370 (gen_rtx): Use immed_double_const.
2371 (init_emit_once): Initialize the const_double_htab. Use
2372 REAL_VALUE_FROM_INT where possible. Can now use
2373 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
2374 * varasm.c (struct varasm_status): Remove x_const_double_chain.
2375 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
2376 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
2377 (init_varasm_status, mark_varasm_status): Don't touch
2378 x_const_double_chain.
2380 * output.h: Delete prototype for clear_const_double_mem.
2381 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
2382 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
2383 const_double_from_real_value, not immed_real_const_1, and use
2384 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
2386 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
2387 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
2388 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
2389 (gen_rtx_REG): Second arg is unsigned.
2391 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
2392 (excluded_rtx): New, return true for CONST_DOUBLE.
2393 (genmacro): Write nothing for excluded codes.
2394 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
2395 * expr.c (expand_expr): Likewise.
2396 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
2398 * toplev.c (rest_of_compilation): Don't call
2399 clear_const_double_mem.
2401 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
2402 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
2403 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
2404 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
2405 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
2406 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
2407 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
2408 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
2410 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2412 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
2414 2002-05-12 Tom Tromey <tromey@redhat.com>
2416 * tree.h (copy_node): Don't mention TREE_PERMANENT.
2418 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2420 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
2421 (scan_comma_elt): New function. Accepts whitespace in comma lists.
2422 * gensupport.h: Prototype new routines.
2423 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
2425 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
2426 (next_comma_elt): Use scan_comma_elt.
2428 * config/i386/i386.md: Use new attribute notation to break up
2429 long lines in define_attr forms.
2431 2002-05-12 Richard Henderson <rth@redhat.com>
2433 * expr.c (compress_float_constant): New.
2434 (emit_move_insn): Use it.
2435 (float_extend_from_mem): New.
2436 (init_expr_once): Initialize it.
2437 * real.c (exact_real_truncate): New.
2439 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
2440 dropped into memory; penalize for size.
2441 (RTX_COSTS): FLOAT_EXTEND is free.
2442 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
2443 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
2445 2002-05-12 Richard Henderson <rth@redhat.com>
2447 * profile.h (profile_info): Add missing extern to declaration.
2448 * profile.c (profile_info): Define it.
2450 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2452 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
2453 used for DImode and TImode.
2455 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
2457 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
2460 2002-05-11 Zack Weinberg <zack@codesourcery.com>
2462 * config/rs6000/rs6000.c (rs6000_default_long_calls,
2463 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
2464 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
2465 (rs6000_override_options): Handle -m(no-)longcall.
2466 (init_cumulative_args, output_mi_thunk): Check for both
2467 longcall and shortcall attributes on the function.
2468 (rs6000_attribute_table): Add "shortcall".
2469 (rs6000_handle_longcall_attribute): Update comment.
2470 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
2471 altivec_expand_ternop_builtin): Add default clauses to switches
2472 to silence warnings.
2474 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
2475 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
2476 (TARGET_OPTIONS): Add longcall and no-longcall.
2478 * config/rs6000/rs6000.md (call_nonlocal_sysv,
2479 call_value_nonlocal_sysv): Split by alternatives. One pair
2480 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
2481 the call cookie. The other pair accepts only LR/CTR and has
2484 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
2485 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
2487 * config/rs6000/rs6000-c.c: New file.
2488 * config/rs6000/t-rs6000-c-rule: New file.
2489 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
2490 Prototype rs6000_pragma_longcall.
2492 * doc/extend.texi: Document shortcall attribute.
2493 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
2495 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2497 * reorg.c (dbr_schedule): Remove unnecessary test.
2499 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2501 * i386.md (testsi to testqi spliters): New.
2503 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
2505 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
2507 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
2509 * basic-block.h: New flag EDGE_CAN_FALLTHRU
2510 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
2511 that can be made fallthru.
2513 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
2515 * cfglayout.c (cleanup_unconditional_jumps): New static function.
2516 (cfg_layout_initialize): Use it.
2518 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
2520 * config/avr/avr.c (avr_mcu_types): Update supported devices.
2521 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2522 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2524 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2526 * dbxout.c: Fix formatting.
2527 * dependence.c: Likewise.
2529 * diagnostic.c: Likewise.
2530 * doloop.c: Likewise.
2531 * dominance.c: Likewise.
2532 * doschk.c: Likewise.
2533 * dwarf2asm.c: Likewise.
2534 * dwarf2out.c: Likewise.
2535 * dwarfout.c: Likewise.
2537 2002-05-10 Richard Henderson <rth@redhat.com>
2539 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
2540 Convert integers constants as needed. Replace "nwords" field with
2542 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
2543 * function.h: Fix typo in comment.
2544 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
2546 2002-05-10 Roger Sayle <roger@eyesopen.com>
2548 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
2549 into the equivalent (signed char)c > 0.
2551 2002-05-10 Janis Johnson <janis187@us.ibm.com>
2553 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
2554 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
2555 (struct prefetch_info): Fix spelling of member bytes_accessed.
2556 (emit_prefetch_instructions): Make dump messages more regular;
2557 restructure code to add more dump messages; use new macros for
2558 heuristics. (There are no code generation changes in any of this).
2560 2002-05-10 David S. Miller <davem@redhat.com>
2562 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
2563 (struct rtx_def): Update unchanging flag comment.
2564 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
2565 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
2566 to be handled to INSN too.
2567 (dbr_schedule): Likewise.
2568 * resource.c (next_insn_no_annul): Likewise.
2570 * cse.c (rtx_cost): Remove multiplication by power of 2 special
2573 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2575 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
2576 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
2577 (possibly) work around broken /bin/sh.
2579 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2581 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
2582 . as N64/N32 libgcc_s.so subdirs.
2584 2002-05-10 David S. Miller <davem@redhat.com>
2586 * config/sparc/sparc.md: Use define_constants for unspec numbers.
2588 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
2590 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
2592 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
2593 * doc/rtl.texi: Document these macros more accurately.
2594 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
2595 JUMP_INSNs and CALL_INSNs.
2596 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
2597 or INSN_FROM_TARGET_P if the code is appropriate.
2599 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
2601 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
2602 before using SYMBOL_REF_FLAG (addr).
2604 * config/avr/avr-protos.h (avr_io_address_p): Declare.
2605 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
2606 Make non-static. Update all callers.
2607 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
2608 New insns to clear/set/test a single bit in I/O address space.
2610 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2612 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
2614 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2616 * Makefile.in: Update.
2617 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
2618 builtin_define_std): New.
2619 (c_common_init): Register CPP builtins callback.
2620 * c-common.h (flag_iso, flag_undef): New.
2621 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
2622 * c-lex.c: Don't include target.h.
2623 (cb_register_builtins): Move to c-common.c.
2624 (init_c_lex): Don't register hook here.
2625 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
2626 (cpp_define, cpp_assert): Remove.
2627 * gcc.c (cc1_options): Pass -undef to front end.
2628 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
2629 (TARGET_INITIALIZER): Update.
2630 * target.h (struct cpp_reader): Don't predeclare.
2631 (struct gcc_target): Remove cpp builtin hook.
2632 * tree.c (default_register_cpp_builtins): Remove.
2636 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2638 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
2640 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2642 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
2643 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
2645 2002-05-09 Jakub Jelinek <jakub@redhat.com>
2647 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
2648 * config/sparc/libgcc-sparc-glibc.ver: New file.
2649 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
2650 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
2652 2002-05-09 Jakub Jelinek <jakub@redhat.com>
2655 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
2656 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
2657 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
2659 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
2660 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
2661 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
2662 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
2664 2002-05-09 Richard Henderson <rth@redhat.com>
2666 * config/ia64/ia64.md: Use define_constants for unspec numbers.
2667 * config/ia64/ia64.c: Likewise.
2669 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
2671 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
2672 (save_restore_insns): Likewise.
2673 (mips_expand_prologue, mips_expand_epilogue): Update callers.
2674 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
2676 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
2678 * athlon.md, k6.md, pentium.md, ppro.md): New files.
2679 * i386.md: Move scheduling information into new files.
2681 * i386.md (type attribute): Add "rotate" for rotate insns.
2682 (rotate insns): Set type to "rotate".
2683 (various attributes and function units): Treat rotate like shift.
2684 (pent_pair attribute): Only rotates by one bit position are
2686 (sbb insns): Explicitly set pent_pair attribute on a couple
2687 that were missing it.
2689 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
2691 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
2692 make sure that buffer starts on odd word address.
2693 (sh_va_arg): Skip odd fp registers when reading a double precision
2696 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2698 * tree.h (preserve_data, object_permanent_p, type_precision):
2701 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2703 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
2704 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
2706 * cpp.texi: Update for removal of obsolete features.
2708 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
2709 Jeffrey A Law (law@redhat.com)
2711 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
2712 the DFA interface for Pentium processors.
2713 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
2714 (attr_pent_pair, ix86_pent_find_pair): Remove.
2715 (ix86_sched_reorder_pentium): Remove.
2716 (ix86_sched_reorder): Remove reordering for Pentium.
2717 * i386.md (Pentium scheduling): Rewrite using DFA description.
2719 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
2721 * cfganal.c (can_fallthru): Fix fast path.
2722 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
2723 with edges to the next block.
2725 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
2726 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2728 * final.c (end_final): Use C trees to output data structures for profiling.
2730 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
2731 (profile.o): New dependency profile.h
2732 (final.o): New dependency profile.h
2733 * profile.h: New file. New global structure profile_info.
2734 * final.h (count_edges_instrumented_now): Declare.
2735 (current_function_cfg_checksum): Declare.
2736 (function_list): New structure.
2737 (functions_head, functions_tail): New static variables.
2738 (end_final): Emits more data, removed some -ax stuff.
2739 (final): Stores function names and chcksums.
2740 * gcov-io.h (__write_gcov_string): New function.
2741 (__read_gcov_string): New function.
2742 * gcov.c (read_profile): New function.
2743 (create_program_flow_graph): Uses read_profile instead of reading
2745 (read_files): Removed da_file checking, it's done by read_profile now.
2746 * libgcc2.c (bb_function_info): New structure.
2747 (bb): New field in structure, removed some -ax stuff.
2748 (__bb_exit_func): Changed structure of da_file.
2749 * profile.c (count_edges_instrumented_now): New global variable.
2750 (current_function_cfg_checksum): New global variable.
2751 (max_counter_in_program): New global variable.
2752 (get_exec_counts): New function.
2753 (compute_checksum): New function.
2754 (instrument_edges): Sets count_edges_instrumented_now.
2755 (compute_branch_probabilities): Uses get_exec_counts instead of
2757 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
2758 (init_branch_prob): Removed da_file checking, done in get_exec_counts
2760 (end_branch_prob): Removed da_file checking, done in get_exec_counts
2762 * gcov.texi: Updated information about gcov file format.
2764 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2766 * sbitmap.c: Fix formatting.
2768 * scan-decls.c: Likewise.
2769 * sched-deps.c: Likewise.
2770 * sched-ebb.c: Likewise.
2771 * sched-rgn.c: Likewise.
2772 * sched-vis.c: Likewise.
2773 * sdbout.c: Likewise.
2774 * sibcall.c: Likewise.
2775 * simplify-rtx.c: Likewise.
2777 * ssa-ccp.c: Likewise.
2778 * ssa-dce.c: Likewise.
2780 * stor-layout.c: Likewise.
2781 * stringpool.c: Likewise.
2783 2002-05-09 David S. Miller <davem@redhat.com>
2785 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
2787 2002-05-07 David S. Miller <davem@redhat.com>
2789 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
2790 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
2791 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
2792 library implementation clobbers the output before the inputs
2793 are fully consumed, use stack temporary for the output.
2795 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
2797 * config/netbsd.h (CPP_SPEC): Remove.
2798 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
2799 * config/i386/netbsd.h (CPP_SPEC): Define.
2800 * config/ns32k/netbsd.h (CPP_SPEC): Define.
2801 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
2802 * config/sparc/netbsd.h (CPP_SPEC): Define.
2803 * config/vax/netbsd.h (CPP_SPEC): Define.
2805 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2807 * read-rtl.c: Fix formatting.
2809 * recog.c: Likewise.
2810 * regclass.c: Likewise.
2811 * regmove.c: Likewise.
2812 * reg-stack.c: Likewise.
2813 * reload1.c: Likewise.
2814 * reload.c: Likewise.
2815 * resource.c: Likewise.
2816 * rtlanal.c: Likewise.
2818 * rtl-error.c: Likewise.
2820 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2822 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
2823 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
2825 2002-05-08 Bernd Schmidt <bernds@redhat.com>
2827 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
2828 use __SSE2__ macro instead.
2829 * config/i386/xmmintrin.h: Likewise.
2831 2002-05-08 Janis Johnson <janis187@us.ibm.com>
2833 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
2834 and use it in all invocations of these macros. Clean up comments.
2835 * rtl.c (rtl_check_failed_flag): Add an argument for the name
2836 of the flag access macro whose check failed.
2837 * doc/rtl.texi (Flags): Document additional flag uses.
2839 2002-05-08 Robert Spier <rspier@pobox.com>
2840 Neil Booth <neil@daikokuya.demon.co.uk>
2842 PR preprocessor/6521
2843 * cppfiles.c (handle_missing_header): Don't do anything
2844 different for <> includes.
2846 * cppopts.texi: Update documentation for -MG.
2848 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
2850 * cpplex.c (cpp_interpret_charconst): Truncate as well as
2853 * cpp.texi: Clarify multichar charconst valuation.
2855 2002-05-08 Mark Mitchell <mark@codesourcery.com>
2857 * doc/invoke.texi: Document -mwindiss option.
2859 2002-05-08 Jason Merrill <jason@redhat.com>
2861 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
2863 * dwarf2out.c (gen_type_die): Abort on broken recursion.
2866 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
2869 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
2871 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
2872 little-endian multilibs to override arm/thumb multilibs.
2873 Do not build hardware floating point multilibs, nor apcs-26
2874 multilibs for the Thumb.
2876 2002-05-08 Mark Mitchell <mark@codesourcery.com>
2879 * varasm.c (mark_weak): New function.
2880 (merge_weak): Use it. Do not call declare_weak.
2881 (declare_weak): Use merge_weak.
2883 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2885 * cse.c (dead_libcall_p): Update counts.
2886 (delete_trivially_dead_insns): Update call of dead_libcall_p.
2888 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2890 * cfglayout.c (function_tail_eff_head): Rename to ...
2891 (function_footer): ... this one.
2892 (unlink_insn_chain): New functions.
2893 (label_for_bb): Only call block_label and emit debug message.
2894 (record_effective_endpoints): Actually unlink the headers and footers.
2895 (fixup_reorder_cahin): Re-insert the unlinked sequences.
2896 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
2897 * cfglayout.h (struct reorder_block_def): New fields footer/header;
2898 remove eff_head/eff_end.
2899 * rtl.h (set_first_insn): Declare.
2900 * emit-rtl.c (set_first_insn): New function.
2902 * cfglayout.c (fixup_reorder_chain): Dump duplicated
2903 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2904 cfg_layout_duplicate_bb): New global function.
2905 (duplicate_insn_chain): New static function.
2906 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2907 cfg_layout_duplicate_bb): Declare.
2908 (struct reorder_block_def): Add "original" field.
2909 * emit-rtl.c (emit_copy_of_insn_after): New function.
2910 * rtl.h (emit_copy_of_insn_after): Declare.
2912 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
2913 (fixup_reorder_chain): properly handle edges to exit block.
2915 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2916 Jan Hubicka <jh@suse.cz>
2918 * basic-block.h (note_prediction_to_br_prob): declare.
2919 * c-semantics.c: Inlucde predit.h
2920 (expand_stmt): predict GOTO_STMT as not taken.
2921 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
2922 (cleanup_cfg): Do not free tail_recursion_list.
2923 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
2924 (flow_delete_block): Kill predictions past end of basic block.
2925 * output.h (delete_unreachable_blocks): Declare.
2926 * predict.c (predicted_by_p, process_note_predictions,
2927 process_note_prediction, last_block_p): New function.
2928 (estimate_probability): Bypass loop on PRED_CONTINUE;
2929 do not handle noreturn heuristics; kill PRED_RETURN; add
2931 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
2932 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
2933 * predict.h (IS_TAKEN): New constant.
2934 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
2935 * rtl.c (NOTE_INSN_PREDICTION): New.
2936 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
2938 (insn_note): add NOTE_INSN_PREDICTION.
2939 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
2940 CFG; free tail_recursion_label_list.
2941 * stmt.c: Include predict.h;
2942 (return_prediction): New.
2943 (expand_value_return): Use it.
2944 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
2946 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
2948 * config/mips/mips.md: Name the unspecs with define_constant.
2949 (*HILO_delay): Rename to 'hilo_delay' (no star).
2950 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
2951 (reload_outdi, reload_outsi): Likewise.
2953 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2955 * toplev.c: Fix formatting.
2957 2002-05-07 Janis Johnson <janis187@us.ibm.com>
2959 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
2960 * configure.in (ac_rtlflag_checking): New.
2961 * doc/install.texi (--enable-checking): Document RTL flag checking.
2963 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
2965 * c-common.c (c_common_init): Set options->unsigned_wchar.
2966 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
2967 group target dependencies.
2968 (init_builtins, cpp_handle_option): Update.
2969 * cpplex.c (cpp_interpret_charconst): Update.
2970 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
2971 signed_char to unsigned_char, group target dependencies.
2972 * defaults.h (WCHAR_UNSIGNED): Remove.
2973 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
2975 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
2976 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
2977 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
2978 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
2979 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
2981 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
2983 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2985 * fixinc/inclhack.def (windiss_math1): New fix.
2986 (windiss_math2): Likewise.
2987 (windiss_valist): Likewise.
2988 * fixinc/fixincl.x: Regenerated.
2990 2002-05-07 Andreas Jaeger <aj@suse.de>
2992 * genautomata.c (output_internal_min_issue_delay_func): Add
2993 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
2994 (output_internal_trans_func): Likewise.
2996 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
2998 * pa.c (hppa_profile_hook): Use force_reg to get the address
2999 of the profile hook into an appropriate pseudo register.
3001 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3003 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3004 (LINK_START_SPEC): Handle it.
3005 (LINK_OS_SPEC): Likewise.
3006 (CPP_SPEC): Likewise.
3007 (STARTFILE_SPEC): Likewise.
3008 (LIB_SPEC): Likewise.
3009 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3011 (CRTSAVRES_DEFAULT_SPEC): New macro.
3012 (LIB_WINDISS_SPEC): New macro.
3013 (CPP_OS_WINDISS_SPEC): Likewise.
3014 (STARTFILE_WINDISS_SPEC): Likewise.
3015 (ENDFILE_WINDISS_SPEC): Likewise.
3016 (LINK_START_WINDISS_SPEC): Likewise.
3017 (LINK_OS_WINDISS_SPEC): Likewise.
3018 * config/rs6000/windiss.h: New file.
3020 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3022 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3024 2002-05-06 David S. Miller <davem@redhat.com>
3026 * config/sparc/sparc.md (shift insns): Do not mask off
3027 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3030 2002-05-06 Richard Henderson <rth@redhat.com>
3033 * expr.c (highest_pow2_factor_for_type): New.
3034 (expand_assignment): Use it.
3036 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3038 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3040 ("altivec_mfvscr"): Same.
3042 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3044 * rtl.h (struct rtx_def): Update comments.
3045 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3046 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3047 RTL_FLAG_CHECK macros with list of expected RTL codes.
3048 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3049 (rtl_check_failed_flag): New.
3050 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3051 (reload_cse_noop_set_p): Check rtx code before using access macro.
3052 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3053 before using access macro.
3055 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3057 * doc/rtl.texi (Flags): Update to reflect current usage.
3059 2002-05-06 Roger Sayle <roger@eyesopen.com>
3062 * fold-const.c (sign_bit_p): New function.
3063 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3064 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3065 Reapply fold when converting (A & C) == C into (A & C) != 0.
3066 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3068 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3070 * c-common.c (warn_multichar): New.
3071 (c_common_init): Set CPP's warn_multichar.
3072 * c-common.h (warn_multichar): New.
3073 * c-decl.c (warn_multichar): Remove.
3074 * c-lex.c (lex_charconst): Update.
3075 * c-tree.h (warn_multichar): Remove.
3076 * cppexp.c (eval_token): Sign-extend charconst value.
3077 * cppinit.c (cpp_create_reader): Set warn_multichar.
3078 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3079 each character. Update prototype. Sign-extend the result.
3080 * cpplib.h: Fix conditions.
3081 (struct cpp_options): Add new warning flag.
3082 (cpp_interpret_charconst): Update prototype.
3084 * cpp.texi: Update documentation.
3086 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3088 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3089 Fix typo in usage of allof instead of unit.
3091 2002-05-06 Richard Henderson <rth@redhat.com>
3093 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3094 and any jump or call for IN.
3096 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3098 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3100 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3102 2002-05-06 Roger Sayle <roger@eyesopen.com>
3104 * fold-const.c (lshift-double): Cast the high word to an unsigned
3105 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3106 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3107 avoid compiler warning. (fold): Remove redundant code from
3108 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3110 2002-05-06 Jeff Law <law@redhat.com>
3112 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3113 * pa.c (pa_adjust_cost): Remove all true dependency cost
3114 adjustments. Also remove support for non-DFA scheduling.
3115 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3116 to adjust true dependency costs. Update various comments.
3117 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3118 FP ALU & MPY units into a single unit.
3120 2002-05-06 Catherine Moore <clm@redhat.com>
3122 * config/v850/v850.c (compute_register_save_size): Make sure
3123 to count all of the registers that will be saved.
3125 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3127 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3129 2002-05-06 David S. Miller <davem@redhat.com>
3131 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3132 allow result to overlap input operands in memory.
3134 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3137 * cpp.texi: Update multichar charconst docs.
3139 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3141 * cpplex.c (cpp_interpret_charconst): Sign-extend each
3142 character. Don't ignore excess characters. Treat
3143 multicharacter character constants as signed.
3144 (cpp_parse_escape): Clarify diagnostic.
3146 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3148 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3149 use add instead of shift.
3150 (ashldi3_sp64): Likewise.
3151 (ashlsi3_const1, ashldi3_const1): Remove.
3152 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3153 * config/sparc/sparc.c (const1_operand): New.
3155 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3157 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3159 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3162 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3164 2002-05-05 Richard Henderson <rth@redhat.com>
3166 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3167 memory latency adjustments.
3168 (alpha_variable_issue): Remove.
3169 (alpha_use_dfa_pipeline_interface): New.
3170 (alpha_multipass_dfa_lookahead): New.
3171 * config/alpha/alpha.md: Remove define_function_unit scheduling;
3172 include new dfa scheduling.
3173 (attr type): Add none.
3175 * config/alpha/ev4.md: New.
3176 * config/alpha/ev5.md: New.
3177 * config/alpha/ev6.md: New.
3179 2002-05-05 David S. Miller <davem@redhat.com>
3181 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3183 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
3185 * cse.c: Fix formatting.
3186 * emit-rtl.c: Likewise.
3188 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3190 * genautomata.c (initiate_states): Add additional guard to
3191 initialize `units_array'.
3193 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3195 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3196 process_unit_to_form_the_same_automaton_unit_lists,
3197 form_the_same_automaton_unit_lists
3198 check_unit_distributions_to_automata): New prototypes and
3200 (check_automata): Rename it into `check_automata_insn_issues'.
3201 (unit_decl): New fields `the_same_automaton_unit' and
3202 `the_same_automaton_message_reported_p'.
3203 (unit_decl_t): New typedef.
3204 (the_same_automaton_lists): New gloval variable.
3205 (unit_regexp, unit_set_el, units_array, units_cmp,
3206 output_get_cpu_unit_code_func): Use the typedef.
3207 (evaluate_max_reserv_cycles): Increment
3208 `description->max_insn_reserv_cycles'.
3209 (initiate_states): Don't increment `max_cycles_num'.
3210 (transform_insn_regexps): Move code around transformation of
3211 regexps from `generate'.
3212 (generate): Remove call of `transform_insn_regexps'.
3213 (expand_automata): Call `transform_insn_regexps' and
3214 `check_unit_distributions_to_automata'. Check errors before
3217 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3218 automaton `ultrasparc3_1'.
3220 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
3222 * c-common.c (c_common_init): Set up CPP arithmetic.
3223 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3224 something reasonable for the host.
3225 (sanity_checks): Add checks.
3226 (cpp_read_main_file): Call sanity_checks() from here...
3227 (cpp_post_options): ... not here.
3228 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3229 * cpplib.h (struct cpp_options): New member int_precision.
3231 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3233 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
3235 2002-05-04 David S. Miller <davem@redhat.com>
3237 * config/sparc/linux.h, config/sparc/linux64.h
3238 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
3240 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
3242 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
3244 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
3247 2002-05-05 Tim Josling <tej@melbpc.org.au>
3249 * treelang; New directory for new sample language treelang.
3251 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3253 * Makefile.in (c-lex.o): Update.
3254 * c-lex.c: Include target.h.
3255 (cb_register_builtins): New.
3256 (init_c_lex): Set builtins callback.
3257 * c-lex.h (cpp_define, cpp_assert): New prototypes.
3258 * cppinit.c (init_builtins): Use callback, including for
3260 * cpplib.h (struct cpp_callbacks): New member.
3261 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
3262 (TARGET_INITIALIZER): Update.
3263 * target.h (struct gcc_target): New hook.
3264 * tree.c (default_register_cpp_builtins): New.
3265 * tree.h (default_register_cpp_builtins): New.
3267 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
3269 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3271 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
3272 (cpp_post_options): Move sanity checks to...
3273 (sanity_checks): New.
3274 * cpplex.c (maybe_read_ucs): Fix prototype.
3275 (parse_string, cpp_parse_escape): Cast for %c format specifier.
3276 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
3279 2002-05-04 Bernd Schmidt <bernds@redhat.com>
3281 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
3282 builtins. Use V2DI patterns instead of TI for logical operations.
3283 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
3284 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
3285 (ix86_expand_builtins): Change the pattern used for movntdq.
3286 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
3287 sse2_nandv2di3): New patterns.
3288 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
3290 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
3291 (cvtdq2pd): Correct mode on operand 1.
3292 (sse2_umulsidi3): Describe without unspec.
3293 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
3295 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
3296 (ashlv2di3): Likewise, from sse2_ashlv2di3.
3297 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
3298 ashlv4si3, ashlv2di3): Use SImode for shift count.
3299 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
3300 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
3302 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
3304 (__m128i, __m128d): New macros.
3305 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
3306 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
3307 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
3308 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
3309 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
3310 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
3311 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
3312 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
3313 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
3314 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
3315 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
3316 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
3317 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
3318 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
3319 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
3320 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
3321 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
3322 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
3323 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
3324 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
3325 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
3326 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3327 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
3328 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3329 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
3330 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
3331 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
3332 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
3333 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
3334 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
3335 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
3336 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3337 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
3338 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
3339 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
3340 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
3341 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
3343 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
3344 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
3346 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3348 * dwarf2out.c: Fix formatting.
3349 * varasm.c: Likewise.
3351 2002-05-04 David Edelsohn <edelsohn@gnu.org>
3354 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
3355 clobber and use result as temporary value.
3357 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3359 * expr.c (force_operand): Use expand_simple_* to handle more
3362 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3364 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
3366 (lex_charconst): Update for change in prototype of
3367 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
3369 * cpphash.h (BITS_PER_CPPCHAR_T): New.
3370 * cppinit.c (cpp_create_reader): Initialize them for no
3371 change in semantics.
3372 (cpp_post_options): Add sanity checks.
3373 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
3374 and truncation issues. Calculate in type cppchar_t.
3375 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
3376 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
3377 run-time dependent precision correctly. Return whether the
3378 result is signed or not.
3379 * cpplib.c (dequote_string): Use cppchar_t; update.
3380 * cpplib.h (cppchar_signed_t): New.
3381 struct cpp_options): New precision members.
3382 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
3383 * cppexp.c (eval_token): Update.
3385 2002-05-03 David S. Miller <davem@redhat.com>
3387 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
3388 * config/sparc/sparc.c (sparc_rtx_costs): New function
3389 implementing RTX_COSTS and CONST_COSTS.
3390 * config/sparc/sparc.h (CONST_COSTS): Delete.
3391 (RTX_COSTS_CASES): Define.
3392 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
3395 * config/sparc/sparc.md (DFA schedulers): Split out...
3396 * config/sparc/cypress.md, config/sparc/hypersparc.md,
3397 config/sparc/sparclet.md, config/sparc/supersparc.md,
3398 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
3400 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
3401 checks on it, always defined for Sparc.
3403 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
3404 Tweak, and add more detailed comments.
3406 2002-05-03 Zack Weinberg <zack@codesourcery.com>
3408 * Re-apply patch accidentally reverted with
3409 DFA scheduler merge: remove all rules and variables to slurp
3410 source files out of libiberty and rebuild them with HOST_CC.
3411 ($(HOST_PREFIX_1)varray.o): New rule.
3412 (genattrtab rule): Word wrap.
3414 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3416 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
3417 (CPP_SUBTARGET_SPEC): Define.
3418 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
3419 cpp_subtarget specs.
3420 (CPP_SPEC): Redefine to include %(cpp_subtarget).
3422 2002-05-03 David S. Miller <davem@redhat.com>
3424 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
3425 * target.h (struct gcc_target): Delete cycle_display member.
3427 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
3428 (rtx_needs_barrier): Delete reference to cycle_display unspec.
3429 (ia64_sched_reorder2): Mention need for cycle display handling
3430 once such notes exist.
3432 2002-05-03 Richard Henderson <rth@redhat.com>
3434 * real.c (etoasc): Strip most trailing zeros for clarity.
3435 * sched-vis.c: Include real.h.
3436 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
3437 * Makefile.in (sched-vis.o): Add real.h.
3439 2002-05-03 David S. Miller <davem@redhat.com>
3441 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
3444 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
3446 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
3447 when we get an out of range literal.
3448 (altivec_expand_ternop_builtin): Same.
3449 (altivec_expand_unop_builtin): Same.
3450 (altivec_expand_builtin): Same, for dss.
3451 (altivec_expand_builtin): Use trees instead of rtl when
3452 determining literal argument validity.
3454 2002-05-03 David S. Miller <davem@redhat.com>
3456 Delete cycle display scheduling hook.
3457 * config/ia64/ia64.c (ia64_cycle_display,
3458 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
3459 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
3460 and use emit_insn_before instead of ia64_emit_insn_before.
3461 * config/ia64/ia64.md (unspec usage): Delete cycle display.
3462 (cycle_display): Delete insn pattern.
3463 * config/sparc/sparc.md (unspec usage): Delete cycle display.
3464 (cycle_display): Delete insn pattern.
3465 * config/sparc/sparc.c (sparc_cycle_display,
3466 TARGET_SCHED_CYCLE_DISPLAY): Delete.
3467 * doc/md.texi (cycle_display): Don't mention.
3468 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
3470 2002-05-03 Richard Henderson <rth@redhat.com>
3472 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
3473 * recog.h: Declare them.
3475 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
3476 * config/sparc/sparc.md: Use store_data_bypass_p instead.
3477 * config/sparc/sparc-protos.h: Update.
3479 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3481 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
3482 -D__arch64__. Add -D_LP64.
3483 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
3485 (CPP_ARCH64_SPEC): Likewise.
3486 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
3487 (NO_BUILTIN_SIZE_TYPE): Undef.
3489 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
3491 * genautomata.c (min_issue_delay_pass_states): Change return type
3493 (min_issue_delay_pass_states): Change the algorithm.
3494 (min_issue_delay): Set up min_insn_issue_delay for the state.
3495 (output_min_issue_delay_table): Interchange the nested loops and
3496 and initiate min_insn_issue_delay for states.
3498 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
3500 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
3503 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3505 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
3508 2002-05-03 Richard Henderson <rth@redhat.com>
3511 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3512 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
3513 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
3514 code before JUMP, not EARLIEST.
3516 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
3518 * c-format.c (check_format_info_main): Don't check for presence of
3519 parameter for * width until after operand number has been read,
3520 and only check for it if format parameters are available.
3523 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3525 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
3526 (LINK_SPEC): Undef before defining.
3528 2002-05-03 Jakub Jelinek <jakub@redhat.com>
3530 PR preprocessor/6489
3531 * tradcpp.c (fixup_newlines): New.
3532 (main, finclude): Use it.
3534 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
3536 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
3537 * config/mips/mips.c (mips_unique_section): Strip encoding from
3540 2002-05-03 Jakub Jelinek <jakub@redhat.com>
3542 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
3545 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3547 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
3548 (Specific): Removed buildstats references.
3549 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
3550 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
3551 Accomodate Solaris versions beyond 8.
3552 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
3553 (Specific, *-*-solaris2.8): Removed, obsolete.
3555 2002-05-03 Jakub Jelinek <jakub@redhat.com>
3558 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
3559 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
3560 fill leaf_reg_remap with identity.
3561 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
3563 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
3565 * config/h8300/crti.asm: Remove trailing spaces.
3566 * config/h8300/h8300.c: Likewise.
3567 * config/h8300/lib1funcs.asm: Likewise.
3569 2002-05-02 Jason Merrill <jason@redhat.com>
3571 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
3572 * c-decl.c (c_init_decl_processing): Use it.
3573 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
3574 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
3575 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
3577 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
3579 * regrename.c: Fix formatting.
3582 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
3584 * i386.md (attribute memory): Handle compares properly.
3586 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
3588 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
3591 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3593 * function.c: Fix formatting.
3595 2002-05-02 Jan Hubicka <jh@suse.cz>
3597 * haifa-sched.c (schedule_insn): Print table of instructions and
3599 (sched_block): Do not print ready list at verbosity level 1.
3600 * sched-vis.c (print_insn): Make global.
3601 * sched-ebb.c (ebb_print_insn): Rename from...
3602 (print_insn): ... this one.
3603 * sched-int.h (print_insn): Declare
3605 2002-05-02 Richard Henderson <rth@redhat.com>
3607 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
3608 emitted by cycle_display.
3610 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
3612 * doc/install.texi (*-*-freebsd*): Update to latest status.
3614 2002-05-02 Jakub Jelinek <jakub@redhat.com>
3617 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
3618 * config/float-sparc.h: Assume 128-bit long double if
3619 __LONG_DOUBLE_128__ is defined.
3621 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
3623 * genattrtab.c (write_function_unit_info): Add a dummy element
3624 when num_units == 0.
3626 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3628 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
3629 TYPE_MODE (double_type_node) instead of DFmode.
3631 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
3633 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
3635 * toplev.c (rest_of_compilation): Revert Richard's patch.
3637 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
3639 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
3641 2002-05-02 Catherine Moore <clm@redhat.com>
3643 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
3645 2002-05-02 Kazu Hirata <kazu@hxi.com>
3647 * combine.c: Fix comment typos.
3649 * genautomata.c: Likewise.
3653 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
3655 * doc/install.texi: State GNAT version requirements.
3657 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3659 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
3660 of the frame pointer or arg pointer register which strict register
3661 checking is not enabled.
3663 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
3665 * gcc.dg/altivec-8.c: New.
3667 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
3668 PRE_INC and PRE_DEC for altivec modes.
3670 2002-05-01 Bruce Korb <bkorb@gnu.org>
3672 * fixinc/check.tpl(set-writable): make sure the function exists first
3673 * fixinc/inclhack.def(alpha_assert): fix test_text
3674 * fixinc/tests/base/assert.h: add in missing result
3676 2002-05-01 Jeff Law <law@redhat.com>
3678 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
3681 2002-05-01 Joel Brobecker <brobecker@gnat.com>
3683 * dbxout.c (dbxout_type): Emit size information for range types,
3684 as well, but only when using GDB extensions.
3686 2002-05-01 Richard Henderson <rth@redhat.com>
3688 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
3689 target-independent gnu binutils date test.
3691 2002-05-01 Richard Henderson <rth@redhat.com>
3693 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
3694 info before expunging the block.
3696 2002-05-01 Jakub Jelinek <jakub@redhat.com>
3698 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
3699 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
3700 -M -or -MM is in effect.
3702 2002-05-01 Zack Weinberg <zack@codesourcery.com>
3704 * config.gcc: Correct test of --enable-obsolete. Obsolete all
3705 A29k configurations.
3706 * doc/install.texi: Update to match.
3708 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3711 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
3712 for duplicates. Always loop over whole list.
3714 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3716 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
3718 2002-05-01 Joel Sherrill <joel@OARcorp.com>
3720 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
3723 2002-05-01 Joel Sherrill <joel@OARcorp.com>
3725 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
3727 2002-05-01 David Edelsohn <edelsohn@gnu.org>
3729 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
3730 (nabs_nopower): Same.
3731 (floatdisf2): New pattern.
3732 (absdi2): Convert to define_insn_and_split.
3737 (fix_trunctfdi2): Same.
3738 (fix_trunctfsi2): Same.
3740 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
3742 * doc/install.texi: Update Texinfo version requirement
3745 2002-05-01 Jakub Jelinek <jakub@redhat.com>
3747 PR target/6512, PR target/5628
3748 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
3749 when memory is not aligned.
3750 (movdf_insn_v9only_vis): Likewise.
3751 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
3752 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
3753 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
3755 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
3757 * gcc.dg/altivec-7.c: New.
3759 * config/rs6000/altivec.h: Cleanup.
3761 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
3763 * doc/invoke.texi (Option Summary): Add -mvrsave=.
3764 (RS/6000 and PowerPC Options): Document -mvrsave=.
3766 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
3767 (rs6000_altivec_vrsave_string): Same.
3768 (rs6000_override_options): Call rs6000_parse_vrsave_option.
3769 (rs6000_parse_vrsave_option): New.
3770 (rs6000_stack_info): Only generate vrsave instructions when
3771 TARGET_ALTIVEC_VRSAVE.
3773 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
3774 (rs6000_altivec_vrsave_string): Define extern.
3775 (rs6000_altivec_vrsave): Same.
3776 (TARGET_ALTIVEC_VRSAVE): New.
3778 2002-04-30 Richard Henderson <rth@redhat.com>
3781 * toplev.c (rest_of_compilation): Don't run cross-jump before
3784 2002-04-30 Tom Rix <trix@redhat.com>
3786 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
3787 check which_alternative.
3789 2002-04-30 Kazu Hirata <kazu@hxi.com>
3791 * cpplex.c: Fix comment formatting.
3792 * function.c: Likewise.
3793 * integrate.c: Likewise.
3794 * regrename.c: Likewise.
3795 * sibcall.c: Likewise.
3796 * simplify-rtx.c: Likewise.
3797 * tree-inline.c: Likewise.
3799 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3801 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
3802 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
3803 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
3804 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
3805 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
3806 * pa/x-ada: New file. Define ADA_CFLAGS.
3808 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
3810 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
3811 from MMIX_LAST_REGISTER_FILE_REGNUM.
3812 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
3813 (struct machine_function): New member highest_saved_stack_register
3814 previously static variable in mmix.c.
3815 (MACHINE_DEPENDENT_REORG): Define.
3816 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
3817 (MMIX_OUTPUT_REGNO): New.
3818 (mmix_target_asm_function_prologue): Move calculation of last used
3819 saved-stack-register into...
3820 (mmix_machine_dependent_reorg): New function. Update to also handle
3822 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
3823 register names, simplify somewhat by new variable regno.
3824 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
3826 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
3827 emitting register names.
3828 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
3829 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
3831 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
3834 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
3836 2002-04-30 Richard Henderson <rth@redhat.com>
3838 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
3839 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
3840 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
3841 emit_tfmode_cvt): New.
3842 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
3843 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
3844 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
3845 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
3846 * config/sparc/sparc-protos.h: Update.
3848 2002-04-30 Janis Johnson <janis187@us.ibm.com>
3850 * install.texi (Final install): Add to the list of info to include
3851 in a report of a successful bootstrap, and add link to 3.1 list.
3853 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
3855 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
3856 (mode): Add vector modes
3857 (i387): Kill attribute.
3858 (unit): New attribute.
3859 (length_immediate): Grok new types.
3860 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
3861 (modrm): Use "unit".
3862 (memory): Handle MMX/SSE properly.
3863 (scheduling descriptions): Kill uses of fop1.
3864 (sse, mmx, fp patterns): Set type and mode properly.
3866 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
3868 * pa.c (override_options): Default to PA8000 scheduling.
3869 * doc/invoke.texi (HP-PA options): Mention newly added 7300
3870 scheduling parameter.
3872 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
3873 handling of double precision multiplies.
3875 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
3876 fpdiv and fpsqrt instructions.
3877 (7200 & 7300 scheduling): Fix typo in handling of
3878 store-load and store-store penalties.
3880 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3882 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
3883 mips. Add two missing commas.
3885 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
3887 * doc/contrib.texi (Contributors): Update Paolo Carlini's
3888 and Benjamin Kosnik's entries.
3890 2002-04-29 David S. Miller <davem@redhat.com>
3892 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
3893 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
3894 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
3895 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
3897 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3899 * combine.c (find_split_point): Use gen_int_mode.
3901 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
3903 Merging code from dfa-branch:
3905 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
3907 * genautomata.c (output_reserv_sets): Fix typo.
3909 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
3911 * genautomata.c (output_reserv_sets): Remove
3912 next_cycle_output_flag.
3914 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
3916 * sched-rgn.c (init_ready_list): Make the DFA code handle
3917 USE/CLOBBER insns in the same way as the traditional
3919 (new_ready): Similarly..
3921 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
3923 * haifa-sched.c (schedule_block): Change the DFA state only after
3926 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
3928 * pa.c (hppa_use_dfa_pipeline_interface): New function.
3929 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
3930 (override_options): Add PA7300 scheduling support.
3931 (pa_adjust_cost): Update various comments. Properly
3932 handle anti and output dependencies when using the
3934 (pa_issue_rate): Add PA7300 scheduling support.
3935 (pa_can_combine_p): Call extract_insn before calling
3936 constrain_operands (taken from mainline tree).
3937 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
3938 * pa.md (cpu attr): Add 7300. Rewrite pipeline
3939 descriptions using DFA descriptions. Add PA7300
3942 2002-03-30 David S. Miller <davem@redhat.com>
3944 Add UltraSPARC-III DFA scheduling support.
3945 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
3946 Update FP conditional move on register insn patterns to use it, as
3948 (define_attr cpu): Add ultrasparc3.
3949 (define_attr us3load_type): New, update integer load patterns to
3950 set it, as appropriate.
3951 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
3952 (rest): Add UltraSPARC3 scheduling description.
3953 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
3954 (PROCESSOR_ULTRASPARC3): New.
3955 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
3956 ({ASM,CPP}_CPU_SPEC): Likewise.
3957 (REGISTER_MOVE_COST): Likewise.
3958 (RTX_COSTS): Likewise.
3959 * config/sparc/sparc.c (sparc_override_options,
3960 sparc_initialize_trampoline, sparc64_initialize_trampoline,
3961 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3962 sparc_issue_rate): Likewise.
3963 * config/sparc/sol2.h: Likewise.
3964 * config/sparc/sol2-sld-64.h: Likewise.
3965 * config/sparc/linux64.h: Likewise.
3967 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
3969 * doc/md.texi: Add comments about usage the latency time for the
3970 different dependencies and about case when two or more conditions
3971 in different define_insn_reservations returns TRUE for an insn.
3973 * doc/md.texi: Add reference for automaton based pipeline
3976 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
3978 * doc/passes.texi: Add missed information about genattrtab.
3980 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
3982 * genautomata.c (output_automata_list_transition_code): Check
3983 automata_list on NULL.
3985 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
3987 * genautomata.c (output_insn_code_cases,
3988 output_automata_list_min_issue_delay_code,
3989 output_automata_list_transition_code,
3990 output_automata_list_state_alts_code): Comment the functions.
3992 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
3994 * genautomata.c (automata_list_el_t): New typedef.
3995 (get_free_automata_list_el,free_automata_list_el,
3996 free_automata_list, automata_list_hash, automata_list_eq_p,
3997 initiate_automata_lists, automata_list_start, automata_list_add,
3998 automata_list_finish, finish_automata_lists,
3999 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4000 output_automata_list_transition_code,
4001 output_automata_list_state_alts_code, add_automaton_state,
4002 form_important_insn_automata_lists): New functions and prototypes.
4003 (insn_reserv_decl): Add members important_automata_list and
4005 (ainsn): Add members important_p.
4006 (automata_list_el): New structure.
4007 (first_free_automata_list_el, current_automata_list,
4008 automata_list_table): New global variables.
4009 (create_ainsns): Initiate member important_p.
4010 (output_internal_min_issue_delay_func): Generate the switch and
4011 call output_insn_code_cases.
4012 (output_internal_trans_func, output_internal_state_alts_func):
4014 (generate): Call initiate_automata_lists.
4015 (automaton_states): New global variable.
4016 (expand_automata): Call form_important_insn_automata_lists.
4017 (write_automata): Call finish_automata_lists.
4019 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4021 * genautomata.c (add_excls, add_presence_absence): Check that
4022 cpu units in the sets belong the same automaton.
4024 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4025 about that cpu units in the sets belong the same automaton.
4027 * doc/md.texi: Ditto.
4029 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4030 Nitin Gupta <niting@noida.hcltech.com>
4032 * config/sh/sh.c (sh_use_dfa_interface): New function.
4034 (sh_issue_rate): New Function.
4035 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4036 TARGET_SCHED_ISSUE_RATE: define.
4038 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4040 (define_attr insn_class): New attribute used for DFA
4042 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4043 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4044 cmpeqdi_t): Likewise.
4046 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4047 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4049 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4051 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4053 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4056 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4058 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4059 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4061 (output_dfa_start_func): Initiate new variable insn_codes_length,
4062 (write_automata): Output definition of the new variable.
4064 2001-10-02 David S. Miller <davem@redhat.com>
4066 * haifa-sched.c (advance_one_cycle): New function.
4067 (schedule_block): Use it.
4068 (queue_to_ready): Use it, and also make sure to advance the DFA
4069 state on all stall cycles, not just those where insn_queue links
4072 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4074 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4075 non-zero if the highest-priority instruction could be scheduled.
4076 (choose_ready): Remove last argument from max_issue call.
4078 2001-09-28 David S. Miller <davem@redhat.com>
4080 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4081 ultrasparc and 3 for other multi-issue sparcs.
4083 2001-09-27 David S. Miller <davem@redhat.com>
4085 * config/sparc/sparc.md (cycle_display): New pattern.
4086 * config/sparc/sparc.c (sparc_cycle_display): New.
4087 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4089 2001-09-25 David S. Miller <davem@redhat.com>
4091 Convert all of Sparc scheduling to DFA
4092 * config/sparc/sparc.md: Kill all define_function_unit
4093 directives and replace with DFA equivalent.
4094 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4095 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4096 ultra_fpmode_conflict_exists, ultra_find_type,
4097 ultra_build_types_avail, ultra_flush_pipeline,
4098 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4099 ultrasparc_variable_issue, ultrasparc_sched_init,
4100 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4101 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4102 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4103 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4104 ultrasparc_store_bypass_p): New.
4105 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4108 2001-09-24 David S. Miller <davem@redhat.com>
4110 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4111 ready->vec[foo] not ready[foo].
4113 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4115 * doc/md.texi: Correct examples for define_insn_reservations
4118 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4120 * genautomata.c (create_automata): Print message about creation of
4122 (generate): Remove printing meease about creation of
4125 2001-09-05 David S. Miller <davem@redhat.com>
4127 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4128 * config/sparc/linux64.h: Likewise.
4130 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4132 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4133 schedule_block, sched_init, sched_finish): Add missed calls of
4134 use_dfa_pipeline_interface.
4136 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4139 * sched-vis.c (get_visual_tbl_length): Ditto.
4141 2001-08-27 Richard Henderson <rth@redhat.com>
4143 * genattr.c (main): Emit state_t even when not doing scheduling.
4145 2001-08-27 Richard Henderson <rth@redhat.com>
4147 * genautomata.c (expand_automata): Always create a description.
4149 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4151 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4152 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4153 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4156 * genattr.c (main): New variable num_insn_reservations. Increase
4157 it if there is DEFINE_INSN_RESERVATION. Output automaton based
4158 pipeline hazard recognizer interface.
4160 * genattrtab.h: New file.
4162 * genattrtab.c: Include genattrtab.h.
4163 (attr_printf, check_attr_test, make_internal_attr,
4164 make_numeric_value): Move protypes into genattrtab.h. Define them
4166 (num_dfa_decls): New global variable.
4167 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4168 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4169 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4170 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
4172 * genautomata.c: New file.
4174 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4176 * sched-int.h: (curr_state): Add the external definition for
4177 automaton pipeline interface.
4178 (haifa_insn_data): Add comments for members blockage and units.
4180 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4181 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4182 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4183 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4184 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4185 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4186 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4188 (TARGET_SCHED): Use the new macros.
4190 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4191 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4192 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4193 dfa_bubble): New members in gcc_target.sched.
4195 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4196 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4197 (insn_queue): Redefine it as pointer to array.
4198 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4200 (max_insn_queue_index_macro_value): New variable.
4201 (curr_state, dfa_state_size, ready_try): New varaibles for
4202 automaton interface.
4203 (ready_element, ready_remove, max_issue): New function prototypes
4204 for automaton interface.
4205 (choose_ready): New function prototype.
4206 (insn_unit, blockage_range): Add comments.
4207 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4208 FUNCTION_UNITS_SIZE == 0.
4209 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4210 actual_hazard, potential_hazard): Add comments.
4211 (insn_cost): Use cost -1 as undefined value. Remove
4212 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
4214 (ready_element, ready_remove): New functions for automaton
4216 (schedule_insn): Add new code for automaton pipeline interface.
4217 (queue_to_ready): Add new code for automaton pipeline interface.
4218 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4219 (debug_ready_list): Print newline when the queue is empty.
4220 (max_issue): New function for automaton pipeline interface.
4221 (choose_ready): New function.
4222 (schedule_block): Add new code for automaton pipeline interface.
4223 Print ready list before scheduling each insn.
4224 (sched_init): Add new code for automaton pipeline interface.
4225 Initiate insn cost by -1.
4226 (sched_finish): Free the current automaton state and finalize
4227 automaton pipeline interface.
4229 * sched-rgn.c: Include target.h.
4230 (init_ready_list, new_ready, debug_dependencies): Add new code for
4231 automaton pipeline interface.
4233 * sched-vis.c: Include target.h.
4234 (get_visual_tbl_length): Add code for automaton interface.
4235 (target_units, print_block_visualization): Add comments.
4237 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
4238 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
4239 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4240 (getruntime.o, genautomata.o): New entries.
4241 (genattrtab.o): Add new dependency file genattrtab.h.
4242 (genattrtab): Add new dependencies. Link it with `libm.a'.
4243 (getruntime.o, hashtab.o): New entries for canadian cross.
4245 * doc/md.texi: Description of automaton based model.
4247 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4249 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4250 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4251 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4252 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4253 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4254 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4255 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4257 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4258 MAX_DFA_ISSUE_RATE): New macro descriptions.
4260 * doc/contrib.texi: Add dfa based scheduler contribution.
4262 * doc/gcc.texi: Add more information about genattrtab.
4264 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4266 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4267 adjust_address_nv call.
4269 2002-04-29 Janis Johnson <janis187@us.ibm.com>
4271 * doc/install.texi (Testing): Provide additional information, and
4272 a stronger encouragement, for running the testsuites.
4274 2002-04-29 DJ Delorie <dj@redhat.com>
4276 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
4277 given in upper case.
4279 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4281 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
4282 Solaris 2 <widec.h> if missing.
4283 * fixinc/fixincl.x: Regenerate.
4284 * fixinc/tests/base/widec.h: New file.
4286 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
4288 * toplev.c (f_options): Add "profile" switch so that
4289 -fno-profile can be used to disable -p.
4291 2002-04-29 Bernd Schmidt <bernds@redhat.com>
4293 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
4295 * tree.c (build_common_tree_nodes_2): Likewise.
4296 * tree.h (enum tree_index): Likewise.
4297 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
4299 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
4301 (init_mmx_sse_builtins): Initialize SSE2 builtins.
4302 (ix86_expand_builtin): Add support for SSE2 builtins.
4303 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
4304 (VALID_SSE_REG_MODE): Use it.
4305 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
4306 (enum ix86_builtins): Add SSE2 builtins.
4307 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
4308 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
4309 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
4310 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
4311 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
4312 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
4313 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
4314 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
4315 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
4316 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
4317 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
4318 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
4319 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
4320 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4321 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
4322 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
4323 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
4324 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
4325 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
4326 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
4327 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
4328 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
4329 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
4330 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
4331 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
4332 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
4333 lfence_insn): New patterns.
4334 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
4335 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
4337 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
4339 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
4341 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4343 * doc/contrib.texi (Contributors): Add Paolo Carlini and
4345 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
4346 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
4347 and CPU instead of cpu.
4349 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4351 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
4353 (lang_independent_options): Add -fif-conversion, -fif-conversion2
4354 (rest_of_compilation): Do if conversion only when asked for.
4355 (parse_options_and_default_flags): Set new variables to 1 for -O1
4356 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
4358 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4360 * i386.c (dbx64_register_map): Fix typo.
4362 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
4364 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
4365 real_one_half, real_bb_freq_max): New static variables.
4366 (debug_profile_bbauxs): Kill.
4367 (process_note_predictions): Kill unused variable.
4368 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
4370 (propagate_freq): Use REAL_ARITHMETICS.
4371 (estimate_bb_frequencies): Likevise; init new static variables.
4372 * Makefile.in (predict.o): Add dependency on real.h
4374 2002-04-28 David S. Miller <davem@redhat.com>
4377 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
4378 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
4379 several {reads,writes} instead.
4380 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
4383 2002-04-27 David S. Miller <davem@redhat.com>
4386 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
4389 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
4390 including signal.h and sys/ucontext.h, not needed.
4392 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
4394 * varasm.c (output_constant_def): Correct test for not calling
4395 ENCODE_SECTION_INFO for INTEGER_CST.
4397 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
4399 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
4400 keep most cases as function eval_token.
4401 (eval_token): New function.
4402 (_cpp_parse_expr): Read token here for improved diagnostics.
4403 Don't use op_as_text. Detect bad ':' here.
4404 (reduce): Don't detect bad ':' here.
4405 (op_as_text): Remove.
4406 * cpphash.h (_cpp_test_assertion): Change prototype.
4407 * cpplib.c (_cpp_test_assertion): Change prototype.
4409 2002-04-28 Richard Henderson <rth@redhat.com>
4412 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
4413 (ggc_mark_rtx_children): New.
4415 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4418 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
4419 after call peepholes for UltraSPARC.
4420 (call + jump 64-bit peepholes): Remove.
4422 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4425 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
4426 result as temporary value.
4428 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4431 * toplev.c (rest_of_compilation): Only run regrename and copy
4432 propagation if optimizing.
4434 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4436 PR optimization/6475
4437 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
4438 register of REGNO_DECL (i).
4439 * Makefile.in (reload1.o): Add $(TREE_H).
4441 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
4443 * cppexp.c (lex): Update to use state.skip_eval.
4444 (struct op): Remove prio and flags members.
4445 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
4446 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
4447 (LEFT_ASSOC): New macro.
4448 (optab): New table of operator priorities and flags.
4450 (_cpp_parse_expr): Clean up logic. Return bool. Use a
4451 malloc-ed parser stack.
4452 (reduce): New; reduce the operator stack.
4453 (_cpp_expand_op_stack): Expand the operator stack as necessary.
4454 * cpphash.h (struct op): Predeclare.
4455 (struct cpp_reader): New members op_stack, op_limit.
4456 (struct lexer_state): New member skip_eval.
4457 (_cpp_parse_expr): Update.
4458 (_cpp_expand_op_stack): New.
4459 * cpplib.c (do_if): Update.
4460 * cppinit.c (cpp_create_reader): Create op stack.
4461 (cpp_destroy): And destroy it.
4462 * cpplib.h (CPP_LAST_CPP_OP): Correct.
4463 (TTYPE_TABLE): Correct.
4465 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4468 * c-decl.c (duplicate_decls): Call merge_weak.
4469 * c-pragma.c (apply_pragma_weak): Warn about misuse.
4470 * output.h (merge_weak): Prototype merge_weak.
4471 * varasm.c (merge_weak): New function.
4472 (declare_weak): Make sure we don't give an error on VAR_DECLs.
4473 Mark RTL with SYMBOL_REF_WEAK.
4475 2002-04-27 Kurt Garloff <garloff@suse.de>
4477 * tree-inline.c (inlinable_function_p): Improve heuristics
4478 by using a smoother function to cut down allowable inlinable size.
4479 * param.def: Add parameters max-inline-insns-single,
4480 max-inline-slope, min-inline-insns that determine the exact
4481 shape of the above function.
4482 * param.h: Likewise.
4484 2002-04-26 Richard Henderson <rth@redhat.com>
4486 * c-parse.in (malloced_yyss, malloced_yyvs): New.
4487 (yyoverflow): Re-add. Set them.
4488 (free_parser_stacks): New.
4489 * c-common.h: Declare it.
4490 * c-lex.c (c_common_parse_file): Call it.
4492 2002-04-26 Richard Henderson <rth@redhat.com>
4494 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
4495 for fallthru search.
4497 2002-04-26 Eric Christopher <echristo@redhat.com>
4499 PR optimization/3700
4500 * config/mips/mips.c (mips_issue_rate): Define. New function.
4501 (TARGET_SCHED_ISSUE_RATE): Use.
4503 2002-04-25 David S. Miller <davem@redhat.com>
4506 * reorg.c (optimize_skip): Do not allow exception causing
4507 instructions to be considered for delay slots.
4508 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
4509 (relax_delay_slots): Do not try to consider exception causing
4510 instructions as redundant.
4512 2002-04-26 Richard Henderson <rth@redhat.com>
4515 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
4517 2002-04-26 Mark Mitchell <mark@codesourcery.com>
4520 * config/i386/i386.md (untyped_call): Return the value in a float
4521 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
4524 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
4526 * tree.c (tree_int_cst_lt): Compare constants whose types differ
4527 in unsigned-ness correctly.
4529 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
4531 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
4532 portable runtime model.
4534 2002-04-26 Richard Henderson <rth@redhat.com>
4536 * c-parse.in (yyoverflow): Revert.
4538 2002-04-26 David Edelsohn <edelsohn@gnu.org>
4539 Richard Henderson <rth@redhat.com>
4541 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
4542 result as temporary value.
4544 2002-04-26 Richard Henderson <rth@redhat.com>
4547 * c-common.c (fix_string_type): Split out of ...
4548 (combine_strings): ... here. Take a varray, not a tree list.
4549 (c_expand_builtin_printf): Use fix_string_type.
4550 * c-common.h: Update decls.
4551 * c-parse.in (string): Remove. Update all uses to use STRING
4552 instead, and not call combine_strings.
4555 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
4556 (build_asm_stmt): Likewise.
4557 * objc/objc-act.c (my_build_string): Use fix_string_type.
4558 (build_objc_string_object): Build varray for combine_strings.
4560 2002-04-26 Bo Thorsen <bo@suse.co.uk>
4562 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
4565 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
4567 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
4568 (HAVE_NO_R_OPERAND): Remove.
4569 (HAVE_VALUE): Remove.
4570 (op_to_prio): Update.
4571 (UNARY): Don't alter flags.
4572 (_cpp_parse_expr): want_value used to indicate whether
4573 a number or unary operator is expected next. Distinguish
4574 unary and binary +/-.
4575 (op_as_text): Update for unary operators.
4577 2002-04-25 Richard Henderson <rth@redhat.com>
4580 * c-parse.in (yyoverflow): New.
4582 2002-04-25 Richard Henderson <rth@redhat.com>
4585 * c-common.c (shorten_compare): Simplfy conditions leading to
4586 the generation of a warning.
4588 2002-04-25 Richard Henderson <rth@redhat.com>
4591 * expmed.c (extract_bit_field): Fall through to generic code rather
4592 than aborting on subreg special case.
4594 2002-04-25 David S. Miller <davem@redhat.com>
4596 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
4597 for DECL being NULL.
4599 2002-04-25 Steve Christiansen <smc@us.ibm.com>
4601 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
4603 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
4605 * c-decl.c (grokdeclarator): Remove outdated ??? note
4606 on invalid declaration of flexible array members.
4608 2002-04-25 Richard Henderson <rth@redhat.com>
4610 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
4612 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4614 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
4615 needed by the compiler, even if they are used as global regs.
4617 2002-04-25 Matt Hiller <hiller@redhat.com>
4619 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
4621 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
4622 of the corresponding functions.
4623 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
4626 2002-04-25 Matt Hiller <hiller@redhat.com>
4628 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
4630 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
4631 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
4632 registers, adjust comment accordingly.
4633 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
4634 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
4635 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
4636 for coprocessor registers.
4637 (ADDITIONAL_REGISTER_NAMES): Include
4638 ALL_COP_ADDITIONAL_REGISTER_NAMES.
4640 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
4641 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
4642 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
4643 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
4644 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
4646 (mips_char_to_class): Adjust comment to include coprocessor
4649 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
4651 (mips_reg_names, mips_regno_to_class): Include coprocessor
4653 (mips_sw_reg_names): Ditto, make non-static.
4654 (mips_move_1word): Handle moves to and from coprocessor registers.
4655 (mips_move_2words): Handle moves to and from coprocessor
4657 (mips_class_max_nregs, mips_register_move_cost): Handle
4658 coprocessor register classes.
4659 (override_options): Initialize mips_char_to_class and
4660 mips_hard_regno_mode_ok properly for coprocessor registers.
4662 * config/mips/mips.md (movdi_internal, movdi_internal2,
4663 movsi_internal1, movsi_internal2): Add constraint-sets for
4664 coprocessor registers.
4665 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
4666 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
4668 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
4669 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
4671 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
4672 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
4674 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
4675 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
4678 * doc/tm.texi: Document feature.
4680 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
4682 * integrate.c (function_attribute_inlinable_p): Simplify.
4683 Check the table pointer is not NULL.
4685 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
4687 * doc/c-tree.texi: Fix typo in introduction.
4689 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
4691 * c-common.h (c_common_parse_file): Update.
4692 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
4693 * c-lex.c (YYDEBUG): Get from c-lex.h.
4694 (c_common_parse_file): Update.
4695 * c-lex.h (YYDEBUG, yydebug): New.
4696 * c-parse.in (YYDEBUG): Get from c-lex.h.
4697 (c_set_yydebug): Remove.
4698 * c-tree.h (c_set_yydebug): Remove.
4699 * langhooks-def.h (lhd_do_nothing_i): New.
4700 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
4701 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
4702 * langhooks.c (lhd_do_nothing_i): New.
4703 (lhd_set_yydebug): Remove.
4704 * langhooks.h (struct lang_hooks): Update.
4705 * toplev.c (set_yydebug): New.
4706 (compile_file): Update call to parse_file hook.
4707 (decode_d_option): Update.
4709 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
4711 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
4713 * loop.c (load_mems): Don't change the interface of called functions.
4715 * calls.c (expand_call): Take current_function_pretend_args_size
4716 into account when setting argblock for sibcalls.
4718 2002-04-24 Matt Hiller <hiller@redhat.com>
4720 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
4723 * cpplex.c (skip_line_comment): Process comment one multibyte
4724 character at a time rather than one char at a time, if
4726 (parse_string): Process string one multibyte character at a time
4727 rather than one char at a time, if appropriate.
4728 * c-lex.c (lex_string): Lex and copy multibyte strings
4730 * cpplib.h (cppchar_t): Change to unsigned.
4732 2002-04-24 Richard Henderson <rth@redhat.com>
4735 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
4738 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
4740 * sh.c (sh_va_arg): If argument was passed by reference,
4741 dereference the pointer.
4743 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4745 * sh.md (divsi3_i4_media): Use match_operand for input values
4746 rather than hard registers.
4747 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
4748 unnecessarily through hard registers. Keep copies of pseudo
4749 registers outside of the libcall sequence.
4751 * sh.md (casesi_shift_media): Add modes.
4753 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
4756 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
4758 * attribs.c (c_common_attribute_table): Move table and handlers
4760 (format_attribute_table, lang_attribute_table,
4761 lang_attribute_common): Remove.
4762 (init_attributes): Replace NULL pointers with pointers to the
4764 (handle_packed_attribute, handle_nocommon_attribute,
4765 handle_common_attribute, handle_noreturn_attribute,
4766 handle_noinline_attribute, handle_always_inline_attribute,
4767 handle_used_attribute, handle_unused_attribute,
4768 handle_const_attribute, handle_transparent_union_attribute,
4769 handle_constructor_attribute, handle_destructor_attribute,
4770 handle_mode_attribute, handle_section_attribute,
4771 handle_aligned_attribute, handle_weak_attribute,
4772 handle_alias_attribute, handle_visibility_attribute,
4773 handle_no_instrument_function_attribute, handle_malloc_attribute,
4774 handle_no_limit_stack_attribute, handle_pure_attribute,
4775 handle_deprecated_attribute, handle_vector_size_attribute,
4776 vector_size_helper): Move to c-common.c.
4777 * c-common.c (c_common_attribute_table,
4778 handle_packed_attribute, handle_nocommon_attribute,
4779 handle_common_attribute, handle_noreturn_attribute,
4780 handle_noinline_attribute, handle_always_inline_attribute,
4781 handle_used_attribute, handle_unused_attribute,
4782 handle_const_attribute, handle_transparent_union_attribute,
4783 handle_constructor_attribute, handle_destructor_attribute,
4784 handle_mode_attribute, handle_section_attribute,
4785 handle_aligned_attribute, handle_weak_attribute,
4786 handle_alias_attribute, handle_visibility_attribute,
4787 handle_no_instrument_function_attribute, handle_malloc_attribute,
4788 handle_no_limit_stack_attribute, handle_pure_attribute,
4789 handle_deprecated_attribute, handle_vector_size_attribute,
4790 vector_size_helper): Move from attribs.c.
4791 * c-common.h (c_common_attribute_table,
4792 c_common_format_attribute_table): New.
4793 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4794 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
4795 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
4796 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
4797 (LANG_HOOKS_INITIALIZER): Update.
4798 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
4799 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
4800 * target.h: Update comment.
4801 * tree.c (default_target_attribute_table): Remove.
4802 * tree.h (default_target_attribute_table, format_attribute_table,
4803 lang_attribute_table, lang_attribute_common): Remove.
4805 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4806 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
4808 2002-04-24 Jason Merrill <jason@redhat.com>
4810 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
4811 * dwarf2out.c (dwarf_attr_name): Support it.
4812 (gen_array_type_die): Emit it.
4813 (lookup_type_die): No special handling for VECTOR_TYPE.
4814 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
4816 2002-04-24 Richard Henderson <rth@redhat.com>
4818 * config/mips/mips.md (movdi_usd): Renumber.
4820 2002-04-24 David S. Miller <davem@redhat.com>
4823 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
4824 32-bit Sparc and current_function_returns_struct is true.
4826 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
4828 * loop.c (canonicalize_condition): Use gen_int_mode.
4830 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
4832 * config/rs6000/altivec.h: Cleanup file. Add non individual
4854 (vec_vcmpequb): New.
4855 (vec_vcmpequh): New.
4856 (vec_vcmpequw): New.
4857 (vec_vcmpeqfp): New.
4858 (vec_vcmpgefp): New.
4859 (vec_vcmpgtub): New.
4860 (vec_vcmpgtsb): New.
4861 (vec_vcmpgtuh): New.
4862 (vec_vcmpgtsh): New.
4863 (vec_vcmpgtuw): New.
4864 (vec_vcmpgtsw): New.
4865 (vec_vcmpgtfp): New.
4866 (vec_vcmpgefp): New.
4871 (vec_vexptefp): New.
4876 (vec_lde): Add vector float variant.
4881 (vec_vmhaddshs): New.
4903 (vec_vmladduhm): New.
4904 (vec_vmhraddshs): New.
4906 (vec_vmsummbm): New.
4907 (vec_vmsumuhm): New.
4908 (vec_vmsumshm): New.
4909 (vec_vmsumuhs): New.
4910 (vec_vmsumshs): New.
4919 (vec_vnmsubfp): New.
4937 (vec_vrsqrtefp): New.
4948 (vec_vspltisb): New.
4949 (vec_vspltish): New.
4950 (vec_vspltisw): New.
4975 (vec_vsum4ubs): New.
4976 (vec_vsum4sbs): New.
4977 (vec_vsum4shs): New.
4978 (vec_vsum2sws): New.
4989 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
4992 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
4993 added literals from substracted literals.
4994 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
4995 (fold) [associate]: Preserve MINUS_EXPR if needed.
4997 2002-04-23 Zack Weinberg <zack@codesourcery.com>
4999 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5002 2002-04-23 Tom Tromey <tromey@redhat.com>
5004 * gcc.c: Added --resource. For PR java/6314.
5006 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5008 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5009 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5012 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5014 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5016 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5018 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5020 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5021 (ix86_expand_clrstr): Fix typo.
5022 * loop.c (gen_load_of_final_value): New.
5023 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5026 2002-04-23 Roger Sayle <roger@eyesopen.com>
5028 * builtins.c (builtin_memset_gen_str): New function.
5029 (expand_builtin_memset): Optimize the case of constant length, but
5032 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5034 * config/rs6000/altivec.h (vec_step): Remove extraneous
5036 (vec_ctu): Cast return.
5038 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5041 * function.h: (struct function): Add profile_label_no field.
5042 (current_function_profile_label_no): Define.
5043 * function.c: (profile_label_no): New static var.
5044 (expand_function_start): Increment it, and copy to
5045 current_function_profile_label_no.
5046 * output.h (profile_label_no): Delete.
5047 * final.c (profile_label_no): Delete.
5048 (profile_function): Use current_function_profile_label_no.
5049 (final_end_function): Don't increment profile_label_no here.
5050 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5051 profile_label_no with current_function_profile_label_no.
5052 * config/pa/pa.c (current_function_number): Delete.
5053 (pa_output_function_prologue): Don't output profile label here.
5054 (hppa_profile_hook): Use label_no param rather than
5055 current_function_number.
5056 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5057 * config/pa/pa.h: .. here.
5058 (FUNCTION_PROFILER): Output profile label here.
5060 2002-04-22 Eric Christopher <echristo@redhat.com>
5062 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5063 patch of 2002-04-09 due to binutils issues.
5064 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5066 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5068 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5069 constraint to 'o' for m=r and r=m alternatives.
5070 ("*movv8hi_internal1"): Same.
5071 ("*movv16qi_internal1"): Same.
5072 ("*movv4sf_internal1"): Same.
5074 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5076 * rtl.h (RTX_FLAG): New macro.
5077 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5078 * final.c (alter_subreg): Use macro to access rtx flag.
5079 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5080 * print-rtl.c (print_rtx): Use new access macro.
5082 * cse.c (insert): Check rtx code before accessing flag.
5084 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5085 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5086 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5087 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5088 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5089 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5090 find_and_mark_used_attributes, unmark_used_attributes,
5091 add_values_to_cover, simplify_with_current_value,
5092 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5093 copy_rtx_unchanging, main): Use new access macros.
5095 2002-04-22 Tom Rix <trix@redhat.com>
5097 * expmed.c (init_expmed): Generate shifted constant once.
5099 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5101 * c-lex.c (lex_charconst): Call convert to get constant in
5102 proper type; don't just smash the type field.
5105 * config.gcc: Add list of obsolete configurations. Disallow
5106 building these without --enable-obsolete.
5107 * doc/install.texi: Document --enable-obsolete and obsoletion
5108 policy. Mention obsoletion of individual targets in
5111 2002-04-22 Richard Henderson <rth@redhat.com>
5113 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5115 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5118 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5119 (walk_fixup_memory_subreg): Likewise.
5120 (fixup_var_refs_insn): Adjust accordingly.
5121 (fixup_var_refs_1): Likewise.
5123 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5125 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5126 LIBPATH_ARCH64_SPEC): Define.
5127 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5128 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5129 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5130 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5132 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5134 * gthr-rtems.h: Correct prototypes to remove warnings.
5136 2002-04-22 Richard Henderson <rth@redhat.com>
5139 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5141 * gcse.c (free_insn_expr_list_list): New.
5142 (clear_modify_mem_tables): Use it. Fix bit set usage.
5143 (canon_list_insert): Use EXPR_LISTs for expressions.
5144 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5146 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
5148 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
5149 file change and include code to _cpp_pop_buffer.
5150 * cpphash.h (struct pending_option): Predeclare.
5151 (struct cpp_reader): New member next_include_file.
5152 (_cpp_pop_file_buffer): Update.
5153 (_cpp_push_next_buffer): Update, rename.
5154 * cppinit.c (cpp_destroy): Free include chain and pending here.
5155 (cpp_finish_options): Simplify.
5156 (_cpp_push_next_buffer): Rename and clean up.
5157 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5159 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5161 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5163 * config/rs6000/altivec.h (vec_xor): Add variant for both args
5164 being vector signed int.
5166 (vec_xor): Add variant for both args being vector signed char.
5167 Remove redundant variant.
5170 2002-04-21 David S. Miller <davem@redhat.com>
5172 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5173 compare mode in output RTL.
5175 2002-04-22 David Edelsohn <edelsohn@gnu.org>
5177 * config/rs6000/rs6000.c (rs6000_override_options): Correct
5178 style and formatting of previous patch.
5180 2002-04-22 Alan Modra <amodra@bigpond.net.au>
5182 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5183 flag_pic for ABI_AIX.
5185 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5187 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5188 * cppfiles.c (read_include_file): Similarly.
5189 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5190 uxstrdup ustrchr, ufputs): Similarly.
5191 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5192 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5193 cpp_ideq, parse_identifier, parse_number): Similarly.
5194 * cpplib.c (struct directive, dequote_string, D, run_directive,
5195 cpp_push_buffer): Similarly.
5196 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5197 _cpp_create_definition, check_trad_stringification,
5198 cpp_macro_definition): Similarly.
5200 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5202 * cppmacro.c (funlike_invocation_p): Don't step back
5205 2002-04-21 David Edelsohn <edelsohn@gnu.org>
5207 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5210 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
5212 * doc/invoke.texi: Remove Chill references.
5213 * doc/gcc.texi: Update last modified date.
5215 2002-04-20 Kazu Hirata <kazu@hxi.com>
5217 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5218 push and pop. Replace add.l with add.w.
5220 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5222 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5223 multiply instructions for H8/300H case.
5225 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5227 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5228 Bum three instructions from each routine.
5230 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
5232 * Makefile.in: Update.
5233 * decl.c (push_c_function_context, pop_c_function_context,
5234 mark_c_function_context): Rename for consistency.
5235 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
5236 * c-tree.h (push_c_function_context, pop_c_function_context,
5237 mark_c_function_context): Rename for consistency.
5238 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5239 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5240 * function.c (init_lang_status, save_lang_status,
5241 restore_lang_status, mark_lang_status, free_lang_status):
5242 Move to langhooks.h.
5243 (push_function_context_to, pop_function_context_from,
5244 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
5246 * function.h (init_lang_status, save_lang_status,
5247 restore_lang_status, mark_lang_status, free_lang_status):
5248 Move to langhooks.h.
5249 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
5250 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
5251 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
5252 LANG_HOOKS_FUNCTION_INITIALIZER): New.
5253 (LANG_HOOKS_INITIALIZER): Update.
5254 (lhd_do_nothing_f): New.
5255 * langhooks.h (struct lang_hooks_for_functions): New.
5256 (struct lang_hooks): New hooks.
5257 * langhooks.c (lhd_do_nothing_f): New.
5259 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5260 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5262 2002-04-19 David S. Miller <davem@redhat.com>
5264 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5265 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
5267 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5269 PR optimization/3756
5270 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
5271 x = ((int) y < 0) ? cst1 : cst2.
5273 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5276 * function.c: Reapply patch for c/6358.
5277 (expand_function_end): Copy decl_rtl's mode, not
5278 current_function_return_rtx mode.
5280 2002-04-19 Joel Sherrill <joel@OARcorp.com>
5282 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
5285 2002-04-19 Tom Tromey <tromey@redhat.com>
5287 * doc/install.texi (Specific): Update status of Solaris 2.8.
5290 2002-04-19 Andreas Schwab <schwab@suse.de>
5292 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
5293 (PUT_REAL): Restore old definition.
5295 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5296 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5298 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
5299 binutils 2.11.2 and higher generate smaller binaries than Sun's
5302 2002-04-19 Mark Mitchell <mark@codesourcery.com>
5305 * toplev.c (rest_of_compilation): Do not defer functions for which
5306 TREE_SYMBOL_REFERENCED has already been set.
5308 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
5310 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
5313 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
5315 * builtins.c: Include langhooks.h.
5316 (lang_type_promotes_to): Remove.
5317 (expand_builtin_va_arg): Use new hook.
5318 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
5319 (simple_type_promotes_to): Move to c-typeck.c.
5320 * c-common.h (simple_type_promotes_to): Remove.
5321 * c-decl.c (duplicate_decls, grokdeclarator): Update.
5322 * c-format.c: Include langhooks.h.
5323 (check_format_types): Update.
5324 * c-tree.h (c_type_promotes_to): New.
5325 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
5326 (type_lists_compatible_p): Update.
5327 * langhooks-def.h (lhd_type_promotes_to): New.
5328 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
5329 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5330 * langhooks.c (lhd_type_promotes_to): New.
5331 * langhooks.h (struct lang_hooks_for_types): New hook.
5332 * tree.h (lang_type_promotes_to): Remove.
5334 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
5336 2002-04-18 Richard Henderson <rth@redhat.com>
5338 * function.c: Revert patch for c/6358.
5340 2002-04-18 Richard Henderson <rth@redhat.com>
5342 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
5343 blocks. Handle multiple references to the TRAP block. Handle
5344 non-adjacent THEN and OTHER blocks.
5346 2002-04-18 Richard Henderson <rth@redhat.com>
5348 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
5349 crash with no type for by-mode libcalls.
5351 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
5353 2002-04-18 Bob Wilson <bob.wilson@acm.org>
5355 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
5356 __xtensa_nonlocal_goto): Use a syscall instructions to flush
5357 the register windows.
5359 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5361 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
5362 appropriate. Document need for extended precision even when
5363 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
5364 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
5365 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
5366 instead of relying on later syntax error when REAL_WIDTH > 5.
5367 * real.c: Define NE based only on whether or not we have a
5368 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
5369 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
5370 define GET_REAL and PUT_REAL as simple memcpy operations; no
5371 need to byteswap or round.
5372 Use #error instead of #ifdef-ing out the entire file, for
5373 prompt error detection.
5375 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
5377 2002-04-18 David S. Miller <davem@redhat.com>
5379 * config/sparc/sparc.h (BRANCH_COST): Define.
5381 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
5384 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
5386 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
5387 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
5388 propagate_block calls after relaxation loop using new variable
5389 stabilized_prop_flags.
5391 2002-04-18 Richard Henderson <rth@redhat.com>
5393 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
5394 (ia64_va_arg): Expect variable sized types by reference.
5395 * config/ia64/ia64-protos.h: Update.
5396 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
5397 ia64_function_arg_pass_by_reference.
5399 2002-04-18 Richard Henderson <rth@redhat.com>
5401 * ifcvt.c: Include except.h.
5402 (block_has_only_trap): Break out from find_cond_trap.
5403 (find_cond_trap): Use it. Always delete the trap block.
5404 (merge_if_block): Allow then block null. Be less simplistic about
5405 what insns can end a block.
5406 * Makefile.in (ifcvt.o): Depend on except.h.
5408 * config/ia64/ia64.md (trap, conditional_trap): New.
5410 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5413 * function.c (assign_parms): Assign hard current_function_return_rtx
5415 (expand_function_end): ...not here.
5417 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
5419 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5420 * c-tree.h (c_incomplete_type_error): New.
5421 * c-typeck.c (require_complete_type, build_component_ref): Update.
5422 (incomplete_type_error): Rename.
5423 * langhooks-def.h (lhd_incomplete_type_error): New.
5424 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
5425 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5426 * langhooks.c (lhd_incomplete_type_error): New.
5427 * langhooks.h (struct lang_hooks_for_types): New hook.
5428 * tree.c (size_in_bytes): Use new hook.
5429 * tree.h (incomplete_type_error): Remove.
5431 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5433 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5435 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
5436 TARGET_FLOAT_FORMAT blocks.
5438 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5440 * doc/install.texi (Downloading the source): Do not mention Chill
5441 any longer, but mention Ada.
5442 (Configuration): Do not mention Chill any longer.
5444 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
5446 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
5448 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
5450 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
5453 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5455 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
5456 instead of unsigned_type.
5458 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5460 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
5461 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
5464 2002-04-18 Bernd Schmidt <bernds@redhat.com>
5466 * attribs.c (vector_type_node_list): New static variable.
5467 (handle_vector_size_attribute): Use it to avoid generating a
5468 new type node each time we are called.
5470 * combine.c (subst): Avoid trying to make a vector mode subreg of
5471 an integer constant.
5472 (gen_lowpart_for_combine): Likewise.
5474 2002-04-18 Roger Sayle <roger@eyesopen.com>
5475 Jakub Jelinek <jakub@redhat.com>
5477 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
5478 for integer constant c (if x has unsigned type or sign bit is not
5479 set in c). This folds the zero/sign extension into the bit-wise and
5482 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5485 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
5488 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
5490 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
5492 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
5494 * gcc.c (read_specs): Detect and fail if an attempt is made to
5495 rename a spec string to an already existing string.
5497 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5499 * config/s390/s390.c (legitimize_pic_address): Do not generate
5500 illegal address constant without CONST.
5502 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5504 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
5505 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
5507 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5509 PR optimization/6305
5510 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
5511 to make sure previous reloads are taken into account. Generate
5512 better code if one operand is an in-range immediate constant.
5514 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
5516 * doc/install.texi (Building): libgcj requires GNU make.
5518 2002-04-17 Jakub Jelinek <jakub@redhat.com>
5521 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
5522 even if hard quad and register is not floating.
5523 (movtf reg<-mem split): Disallow splitting if hard quad and
5524 register is floating.
5525 (movtf mem<-reg split): Likewise.
5526 * config/sparc/sparc.c (fp_register_operand): New predicate.
5527 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
5529 2002-04-17 Zack Weinberg <zack@codesourcery.com>
5531 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
5532 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
5533 (unprotoize.o): Ditto. Build from protoize.c. Define
5534 UNPROTOIZE on command line.
5535 * protoize.c: Include cppdefault.h. Delete include_defaults.
5536 (in_system_include_dir): Use cpp_include_defaults (defined in
5538 * unprotoize.c: Delete file.
5540 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
5542 * config/rs6000/altivec.h (vec_ld): Add array variants.
5546 2002-04-17 Alan Matsuoka <alanm@redhat.com>
5547 Aldy Hernandez <aldyh@redhat.com>
5549 * config/rs6000/altivec.h: Define __ALTIVEC__.
5556 Add parentheses to all macro arguments.
5558 2002-04-16 Richard Henderson <rth@redhat.com>
5561 * except.c (remove_eh_handler): Insert inner regions at beginning
5562 of sibling chain. Refactor expressions.
5564 2002-04-16 Richard Henderson <rth@redhat.com>
5566 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
5567 * config/sparc/sol2-gas-bi.h: New file.
5568 * config.gcc (sparc*-solaris): Add it as needed.
5569 * configure.in (AS_SPARC64_FLAG): Remove check.
5570 * config.in, configure: Regenerate.
5572 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
5574 2002-04-16 Richard Henderson <rth@redhat.com>
5576 * config/mips/mips.c (override_options): Don't override N32 for
5580 * config/mips/mips.md (can_delay): Split out of existing define_delays.
5581 (HILO_delay): Set can_delay false.
5583 2002-04-16 Dale Johannesen <dalej@apple.com>
5585 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
5586 instruction addresses.
5587 (rs6000_output_function_epilogue): Likewise.
5589 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
5591 * c-parse.in (poplevel, compstmt_start,
5592 compstmt_primary_start): Add ending ';', in accordance
5595 2002-04-16 Richard Henderson <rth@redhat.com>
5597 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
5598 Adjust tm_file order to get TARGET_DEFAULT set properly.
5599 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
5600 * doc/install.texi (sparc-solaris): Update.
5602 2002-04-16 Dale Johannesen <dalej@apple.com>
5604 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
5605 comparison operands do not match each other or if modes of
5606 conditions do not match result.
5608 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
5611 * config/s390/s390.md (mulsidi3): Set both subregs of the
5614 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
5616 * config/rs6000/altivec.h (vec_addc): Type check.
5618 2002-04-16 Jakub Jelinek <jakub@redhat.com>
5621 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
5623 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
5625 2002-04-15 Richard Henderson <rth@redhat.com>
5627 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
5628 call_really_used_regs too.
5630 2002-04-15 Richard Henderson <rth@redhat.com>
5632 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
5634 2002-04-15 David S. Miller <davem@redhat.com>
5636 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
5639 2002-04-16 Jakub Jelinek <jakub@redhat.com>
5642 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
5643 CONST_VECTOR is { 0, ... 0 }.
5645 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
5647 * doc/install.texi (Installing GCC: Configuration): Clarify
5648 the only supported ways to configure gcc.
5650 2002-04-15 Roland McGrath <roland@frob.com>
5652 * config.gcc (alpha*-*-gnu*): New target configuration.
5653 * config/alpha/gnu.h: New file for it.
5654 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
5656 2002-04-16 Mark Mitchell <mark@codesourcery.com>
5658 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
5659 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
5660 * tree.h (expand_start_stmt_expr): Update prototype.
5661 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
5662 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
5663 on the STMT_EXPR created for the inline function.
5665 2002-04-15 Richard Henderson <rth@redhat.com>
5667 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
5668 config/i386/linux-aout.h, config/i386/linux-oldld.h,
5669 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
5670 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
5671 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
5672 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
5673 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
5674 Define __gnu_linux__, not gnu_linux.
5675 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
5677 2002-04-15 Mark Mitchell <mark@codesourcery.com>
5679 Remove Chill front end.
5680 * gcc.c (default_compilers): Remove Chill entries.
5681 * ch: Remove directory.
5682 * doc/frontends.texi: Remove information about Chill.
5683 * doc/sourcebuild.texi: Likewise.
5684 * doc/standards.texi: Likewise.
5686 2002-04-15 Douglas B Rupp <rupp@gnat.com>
5688 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
5689 (LONGLONG_STANDALONE): Define.
5691 2002-04-15 David S. Miller <davem@redhat.com>
5693 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
5694 Call emit_library_call with LCT_NORMAL.
5695 (sparc_initialize_trampoline): Use LCT_foo instead of
5696 magic constant in emit_library_call invocations.
5697 (sparc64_initialize_trampoline): Likewise.
5698 (sparc_profile_hook): Likewise.
5699 * config/sparc/sparc.md: Likewise.
5701 * config/sparc/sparc.c (sparc_extra_constraint_check):
5702 Fix type of argument 'c'.
5703 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
5706 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
5708 * diagnostic.h (output_buffer_state): Redefine.
5709 (output_format_decoder): New macro.
5710 (output_prefixing_rule): Likewise.
5711 (output_line_cutoff): Likewise.
5712 (diagnostic_format_decoder): Adjust.
5713 (diagnostic_prefixing_rule): Likewise.
5714 (diagnostic_line_cutoff): Likewise.
5715 (diagnostic_state): Likewise.
5716 (diagnostic_kind_count): Likewise.
5717 (diagnostic_buffer): Now a macro.
5719 * diagnostic.c (diagnostic_buffer): Remove definition.
5720 (output_is_line_wrapping): Adjust.
5721 (set_real_maximum_length): Likewise.
5722 (output_set_maximum_length): Likewise.
5723 (init_output_buffer): Likewise.
5724 (lhd_print_error_function): Likewise.
5725 (output_do_verbatim): Likewise.
5727 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
5729 * cpperror.c (print_location): Don't print include chain
5731 (cpp_begin_message): Update to use DL_ macros.
5732 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
5733 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
5734 cpp_notice, cpp_notice_from_errno): Remove.
5735 (cpp_error, cpp_error_with_line): Update to take a diagnostic
5738 * cppexp.c (CPP_ICE): Remove.
5739 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
5740 lex, integer_overflow, _cpp_parse_expr): Update.
5741 * cppfiles.c (read_include_file, find_include_file,
5742 handle_missing_header, _cpp_read_file, remap_filename): Update.
5743 * cpphash.h (enum error_type): Remove.
5744 (_cpp_begin_message): Update.
5745 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
5746 cpp_handle_option, cpp_post_options): Update.
5747 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
5748 skip_whitespace, parse_identifier, parse_slow, parse_string,
5749 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
5750 cpp_interpret_charconst): Update.
5751 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
5752 lex_macro_node, do_undef, glue_header_name, parse_include,
5753 do_include_common, read_flag, do_line, do_linemarker, do_ident,
5754 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
5755 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
5756 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
5757 _cpp_pop_buffer, do_diagnostic): Update.
5758 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
5759 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
5760 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
5761 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
5762 cpp_notice, cpp_notice_from_errno): Remove.
5763 (cpp_error, cpp_error_with_line): Update to take a diagnostic
5766 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
5767 collect_args, enter_macro_context, save_parameter, parse_params,
5768 _cpp_create_definition, check_trad_stringification,
5769 cpp_macro_definition): Update.
5770 * cppmain.c (cpp_preprocess_file): Update.
5771 * fix-header.c (read_scan_file): Update.
5773 2002-04-14 Andreas Schwab <schwab@suse.de>
5775 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
5777 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5779 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
5781 2002-04-13 Mark Mitchell <mark@codesourcery.com>
5783 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
5786 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
5788 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
5790 2002-04-13 Joel Sherrill <joel@OARcorp.com>
5792 * config/sparc/t-elf: Enable v8 multilibs. Impacts
5793 sparc-elf and sparc-rtems targets.
5795 2002-04-13 Mark Mitchell <mark@codesourcery.com>
5797 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
5798 defined, and __gnu_hurd__ wherever __GNU__ is defined.
5799 * arm/linux-elf.h: Likewise.
5800 * cris/aout.h: Likewise.
5801 * cris/linux.h: Likewise.
5802 * i370/linux.h: Likewise.
5803 * i386/gnu.h: Likewise.
5804 * i386/linux-aout.h: Likewise.
5805 * i386/linux-oldld.h: Likewise.
5806 * i386/linux.h: Likewise.
5807 * i386/linux64.h: Likewise.
5808 * ia64/linux.h: Likewise.
5809 * m68k/linux-aout.h: Likewise.
5810 * m68k/linux.h: Likewise.
5811 * mips/linux.h: Likewise.
5812 * pa/pa-linux.h: Likewise.
5813 * pj/linux.h: Likewise.
5814 * rs6000/sysv4.h: Likewise.
5815 * s390/linux.h: Likewise.
5816 * sh/linux.h: Likewise.
5817 * sparc/linux-aout.h: Likewise.
5818 * sparc/linux.h: Likewise.
5819 * sparc/linux64.h: Likewise.
5820 * xtensa/linux.h: Likewise.
5822 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
5824 * stmt.c (check_unique_operand_names): Expect operand names to
5825 be strings rather than identifiers. Use simple_cst_equal to
5827 (resolve_operand_name_1): Make same identifier to string change here.
5828 * c-parse.in (asm_operand): Convert a named operand into a string.
5829 * cp/parse.y (asm_operand): Likewise.
5831 2002-04-13 Andreas Schwab <schwab@suse.de>
5833 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
5835 2002-04-12 Mark Mitchell <mark@codesourcery.com>
5837 Revert these changes:
5839 2002-04-06 Mark Mitchell <mark@codesourcery.com>
5842 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5844 2002-04-12 Richard Henderson <rth@redhat.com>
5846 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
5847 (sparc*-*-solaris): Clean up header files.
5848 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
5849 and plan on generating 64-bit code.
5850 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
5851 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
5852 * config/sparc/sol2-sld-64.h: Rename ...
5853 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
5854 for AS_SPARC64_FLAG not defined.
5855 * config/sparc/sol2-gld-bi.h: New.
5856 * config/sparc/sol2-sld.h: Remove.
5857 * config/sparc/sol26-sld.h: New.
5858 * config/sparc/sol2.h: Tidy comments.
5859 * doc/install.texi: Document sparc-solaris configury changes.
5861 2002-04-12 Richard Henderson <rth@redhat.com>
5863 * recog.c (offsettable_address_p): Match the logic in adjust_address.
5865 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
5866 in 64-bit mode only. Use only for 32-bit or MEDLOW.
5868 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5870 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
5872 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
5874 * pa.c (pa_can_combine_p): Call extract_insn before calling
5877 2002-04-12 Douglas B Rupp <rupp@gnat.com>
5879 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
5880 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
5881 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
5882 (CPP_PREDEFINES): Handle __declspec.
5883 * config/i386/t-interix (USER_H): Remove.
5885 2002-04-12 DJ Delorie <dj@redhat.com>
5887 * integrate.c (compare_blocks): Make comparisons safe for when
5888 sizeof(int) < sizeof(char *).
5889 (find_block): Likewise.
5891 2002-04-12 Jan Hubicka <jh@suse.cz>
5892 David Edelsohn <edelsohn@gnu.org>
5894 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
5896 (symbol_ref_operand): New.
5897 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
5898 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
5900 2002-04-12 Andreas Schwab <schwab@suse.de>
5902 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
5903 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
5904 overrides the definition in config/svr4.h.
5906 2002-04-12 Eric Norum <eric.norum@usask.ca>
5908 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
5909 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
5910 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
5911 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
5912 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
5913 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
5914 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
5915 definitions to config/rtems.h and make the targets more similar.
5917 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5919 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
5920 POINTERS_EXTEND_UNSIGNED.
5921 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
5922 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
5924 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
5927 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
5929 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
5930 depends on TARGET_SHMEDIA, not TARGET_SH5.
5932 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
5934 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
5935 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
5937 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
5939 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
5942 2002-04-12 Andreas Schwab <schwab@suse.de>
5944 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
5946 2002-04-12 Richard Henderson <rth@redhat.com>
5949 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
5951 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
5952 modes spanning multiple hard regs.
5954 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
5956 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5958 * pa.c (pa_output_function_prologue): Don't accumulate the total
5959 number of code bytes when using TARGET_64BIT, or gas, SOM and not
5960 the portable runtime.
5961 (output_deferred_plabels): Handle 64bit plabels.
5962 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
5963 generating pic code using the GAS assembler for object formats that
5964 are not SOM (ie., ELF32 and ELF64).
5965 (output_millicode_call): Check attribute type if attribute length is 28.
5966 Likewise use $PIC_pcrel$0. Only call get_attr_length and
5967 dbr_sequence_length once.
5968 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
5969 dbr_sequence_length once.
5970 * pa.h (TARGET_SOM): Define if not defined.
5971 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
5972 with GAS and not SOM.
5973 (jump, call_internal_reg, call_value_internal_reg): Likewise.
5974 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
5976 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5978 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
5979 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
5980 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
5981 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
5982 elfos.h and dbxelf.h values are fine now.
5983 * config/i386/freebsd.h, config/alpha/freebsd.h
5984 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
5986 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5988 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
5989 or set Acpu or Amachine. Reformat.
5990 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5992 (LINK_SPEC): Do not need to undef.
5993 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
5994 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
5995 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5997 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
5998 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
5999 (LINK_SPEC): Do not need to undef.
6000 (DONT_USE_BUILTIN_SETJMP): Do not define.
6001 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6002 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6003 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6004 Remove trailing spaces.
6005 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6006 __ELF__, or set Acpu or Amachine. Reformat.
6007 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6010 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6012 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6013 all other *-*-freebsd* targets.
6015 2002-04-11 Richard Henderson <rth@redhat.com>
6017 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6019 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6021 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6022 Include {cpu}/{cpu}.h thru tm_file.
6023 (alpha*-*-linux*ecoff): Remove target.
6024 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6025 (LINK_SPEC): Remove, is not OS independent.
6026 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6027 (LINK_SPEC): Do not need to #undef any longer.
6028 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6030 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6032 (LINK_SPEC): Moved here from alpha/elf.h.
6033 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6035 * config/alpha/linux-ecoff.h: Remove.
6036 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6037 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6038 (CPP_SUBTARGET_SPEC): Do not define.
6039 (LINK_SPEC): Do not need to #undef any longer.
6040 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6041 * config/alpha/vms.h: Likewise.
6043 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6045 * doc/extend.texi: Remove old claim that typedefs cannot have
6046 an alignment attribute.
6048 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6050 PR optimization/6177
6051 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6052 bitpos is 0 and bitsize CONCAT size.
6054 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6057 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6059 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6061 * config/alpha/freebsd.h: Minor reformatting.
6062 (CPP_SPEC): Define ELF and add cpp_subtarget.
6063 (ASM_SPEC): No longer needed.
6065 2002-04-11 Richard Henderson <rth@redhat.com>
6067 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6068 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6069 (dimode mem/zero splitter): New.
6071 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6073 * config/cris/cris.c (cris_override_options): Tweak error message
6074 for PIC not implemented.
6076 * config/cris/cris.h: Tweak comments related to parameter-passing.
6078 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6080 2002-04-10 Richard Henderson <rth@redhat.com>
6082 * except.c (add_ehl_entry): Allow duplicates after landing pad
6085 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6087 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6089 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6091 * c-decl.c (c_init_decl_processing): Move generation of
6092 decls for g77_integer_type_node and friends from here ...
6093 * c-common.c (c_common_nodes_and_builtins): ... to here.
6095 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6097 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6098 is only used as frame pointer when frame_pointer_needed is true.
6100 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6103 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6104 for the fact that the pool entry uses two words.
6105 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6107 (movdf_soft_insn): Similarly.
6108 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6109 for the fact that the pool entry uses three words.
6111 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6113 * config/mips/mips.c (mips_va_arg): When using the struct version
6114 of the EABI va_list, allow arguments in the register save area to
6115 take up less room than a stack argument.
6117 2002-04-10 Richard Henderson <rth@redhat.com>
6119 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6120 if EXPAND_INITIALIZER.
6122 2002-04-09 Richard Henderson <rth@redhat.com>
6124 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6125 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6127 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6129 PR optimization/6233
6130 * rtlanal.c (pure_call_p): New function.
6131 * rtl.h (pure_call_p): Declare.
6132 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6133 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6135 2002-04-09 Eric Christopher <echristo@redhat.com>
6137 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6138 information to .comm directive.
6140 2002-04-09 Richard Henderson <rth@redhat.com>
6143 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6145 2002-04-09 Richard Henderson <rth@redhat.com>
6147 * basic-block.h (flow_delete_block_noexpunge): Declare.
6148 (expunge_block_nocompact): Declare.
6149 * cfg.c (expunge_block_nocompact): Split out from ...
6150 (expunge_block): ... here.
6151 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6152 (flow_delete_block_noexpunge): Split out from ...
6153 (flow_delete_block): ... here.
6154 * cfgcleanup.c (delete_unreachable_blocks): Compact while
6155 removing dead blocks.
6156 * except.c (exception_handler_labels): Remove.
6157 (exception_handler_label_map): New.
6158 (struct eh_region): Add aka member.
6159 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6160 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6161 (for_each_eh_label, for_each_eh_label_1): New.
6162 (init_eh): Register exception_handler_label_map.
6163 (free_eh_status): Use free_region.
6164 (find_exception_handler_labels): Use the map, not the list.
6165 (remove_exception_handler_label): Likewise.
6166 (maybe_remove_eh_handler): Likewise.
6167 (remove_eh_handler): Use the region aka bitmap.
6168 * except.h (exception_handler_labels): Remove.
6169 (for_each_eh_label): Declare.
6170 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6171 * loop.c (invalidate_loops_containing_label): New.
6172 (find_and_verify_loops): Use it. Use for_each_eh_label.
6173 * sched-rgn.c (is_cfg_nonregular): Use
6174 current_function_has_exception_handlers.
6176 2002-04-09 Richard Henderson <rth@redhat.com>
6178 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6179 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6180 Do not return changed status.
6181 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6182 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6183 New functions that do return changed status.
6184 * sbitmap.h: Update decls.
6185 * gcse.c, lcm.c: Use _cg functions as needed.
6187 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6189 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6190 (sh64-*-elf*, sh-*-rtemself*): Likewise.
6191 * config/sh/embed_bb.c: New file.
6192 * config/sh/embed-elf.h: New file.
6193 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6194 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
6195 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6197 (SUBTARGET_CPP_PTR_SPEC): Don't define.
6198 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6199 Add subtarget_asm_endian_spec.
6200 (ASM_SPEC): Use subtarget_asm_endian_spec.
6201 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6202 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6203 (WCHAR_UNSIGNED): Define.
6204 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6205 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6206 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6208 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6209 (sh_adjust_cost): Likewise.
6210 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6212 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6213 (WCHAR_TYPE_SIZE): Likewise.
6214 (ASM_SPEC): Use subtarget_asm_endian_spec.
6215 (SH_ELF_WCHAR_TYPE): #undef/ #define.
6216 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6217 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6218 (MAX_WCHAR_TYPE_SIZE): Don't #define .
6219 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6220 (USER_LABEL_PREFIX): Don't #undef /#define .
6221 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6222 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6223 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6224 (ASM_SPEC): Likewise.
6225 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6226 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6227 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6228 (LIB2FUNCS_EXTRA): Define.
6229 * t-sh64 (LIB2FUNCS_EXTRA): Define.
6230 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
6231 (LIB1ASMFUNCS_CACHE): Define.
6232 (LIB2FUNCS_EXTRA): Redefine empty.
6234 2002-04-08 Richard Henderson <rth@redhat.com>
6236 * reorg.c (get_branch_condition): Use reversed_comparison_code.
6238 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6240 * config/m68hc11/larith.asm (__map_data_section): Fix condition
6241 and optimize for size.
6242 (__do_global_ctors): Fix pointer comparison.
6243 (__do_global_dtors): Likewise.
6245 2002-04-09 David S. Miller <davem@redhat.com>
6247 * config/sparc/sparc.c (sparc_extra_constraint_check): New
6248 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
6249 allow reloading pseudos.
6250 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
6251 * config/sparc/sparc-protos.h: Declare it.
6253 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
6254 unsigned comparison warning.
6255 (output_restore_regs): Mark leaf_function as unused.
6257 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6259 * expr.c (is_aligning_offset): New function.
6260 (expand_expr, case COMPONENT_EXPR): Call it.
6262 2002-04-08 David S. Miller <davem@redhat.com>
6265 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
6267 Make init_priority work on Sparc when using GNU ld.
6268 * config/sparc/linux.h, config/sparc/linux64.h,
6269 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
6270 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
6271 * config/sparc/sol2-gld.h: New file to do the same.
6272 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
6273 sparc/sol2-gld.h to tm_file.
6275 PR optimization/4328
6276 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
6277 * doc/md.texi: Document it.
6278 * config/sparc/sparc.md (movdi_insn_sp64_novis,
6279 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
6280 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
6281 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
6282 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
6284 2002-04-08 Andreas Jaeger <aj@suse.de>
6286 * stmt.c (expand_asm_operands): Revert last patch from Richard
6289 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6291 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
6292 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
6294 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6296 * doc/contrib.texi (Contributors): Add David O'Brien.
6298 2002-04-08 Alan Modra <amodra@bigpond.net.au>
6300 * configure.in (auto-build.h): Use target_alias and build_alias
6301 when running configure.
6302 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
6303 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
6304 * configure: Regenerate.
6306 2002-04-07 David S. Miller <davem@redhat.com>
6308 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
6310 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
6313 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
6314 generating 32-bit pic code.
6316 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
6318 * cppinit.c (cpp_create_reader): Initialize
6319 discard_comments_in_macro_exp.
6320 (COMMAND_LINE_OPTIONS): Add "-CC" option.
6321 (cpp_handle_option): Handle "-CC" option.
6322 * cpplex.c (save_comment): If saving a C++ comment in
6323 a directive, convert it to a C comment.
6324 (_cpp_lex_direct): Pass second comment start character to
6325 save_comment to indicate comment type.
6326 * cpplib.c (_cpp_handle_directive): If processing
6327 a "#define" directive and discard_comments_in_macro_exp
6328 is false, re-enable saving of comments.
6329 (lex_macro_node): If discard_comments_in_macro_exp is false,
6330 discard any comments before the macro identifier.
6331 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
6333 * cppmacro.c (cpp_get_token): If expanding a macro while
6334 processing a directive, discard any comments we might encounter.
6335 (parse_params): If discard_comments_in_macro_exp is false,
6336 ignore comments in the macro parameter list.
6337 * gcc.c (cpp_unique_options): Add "-CC" option.
6338 (option_map): Map "--comments-in-macros" to "-CC".
6339 * doc/cppopts.texi: Document "-CC" option.
6340 * f/lang-specs.h: Add "-CC" option.
6341 * testsuite/gcc.dg/cpp/maccom1.c: New test.
6342 * testsuite/gcc.dg/cpp/maccom2.c: New test.
6343 * testsuite/gcc.dg/cpp/maccom3.c: New test.
6344 * testsuite/gcc.dg/cpp/maccom4.c: New test.
6345 * testsuite/gcc.dg/cpp/maccom5.c: New test.
6346 * testsuite/gcc.dg/cpp/maccom6.c: New test.
6348 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
6351 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
6353 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6356 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6359 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
6360 RTX_UNCHANGING_P for the functions arguments when a tail call
6363 2002-04-06 Jason Merrill <jason@redhat.com>
6365 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
6366 (parse_options_and_default_flags): Set them appropriately.
6367 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
6369 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
6371 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
6374 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
6377 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
6378 types come in by-reference. Fix typo in comment.
6380 2002-04-05 David S. Miller <davem@redhat.com>
6382 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
6383 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
6384 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
6385 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
6387 2002-04-05 David S. Miller <davem@redhat.com>
6389 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
6390 are not going to emit return instructions, emit at least a nop
6391 for the sake of sane backtraces.
6393 2002-04-05 Richard Henderson <rth@redhat.com>
6395 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
6397 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
6399 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
6401 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
6403 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
6404 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
6405 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
6407 2002-04-05 Andreas Schwab <schwab@suse.de>
6409 * c-convert.c: Include c-common.h.
6410 * Makefile.in (c-convert.o): Updated.
6412 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6414 * mklibgcc.in: Use separate libgcc.map for each multilib.
6415 * Makefile.in (distclean): Don't remove libgcc.map here.
6417 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6419 * Makefile.in (s-mlib): Handle --disable-multilib by separate
6420 genmultilib invocation.
6422 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
6424 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
6425 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
6426 to num_gprs for symmetry.
6427 * config/mips/mips.c: Adjust accordingly.
6429 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
6431 * c-common.c (truthvalue_conversion): Rename, update.
6432 * c-common.h (c_common_truthvalue_conversion): New.
6433 * c-convert.c (convert): Update.
6434 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6435 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
6436 * c-typeck.c (build_binary_op, build_unary_op,
6437 build_conditional_expr): Update.
6438 * fold-const.c (constant_boolean_node, fold): Use langhook.
6439 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
6440 * langhooks.h (struct lang_hooks): New hook.
6441 * stmt.c (expand_decl_cleanup): Use langhook.
6442 * tree.h (truthvalue_conversion): Remove.
6444 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6446 2002-04-05 Alan Modra <amodra@bigpond.net.au>
6448 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
6449 Add rules to make null object file.
6451 2002-04-04 Jim Blandy <jimb@redhat.com>
6453 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
6454 macro formal parameter names.
6456 2002-04-04 David S. Miller <davem@redhat.com>
6458 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
6460 2002-04-04 Richard Henderson <rth@redhat.com>
6463 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
6464 Support copies into and out of memory. Don't accept allows_reg
6465 and allows_mem as gospel.
6467 2002-04-04 Richard Henderson <rth@redhat.com>
6470 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
6471 (write_dependence_p): Likewise.
6473 2002-04-04 Richard Henderson <rth@redhat.com>
6475 * predict.c (estimate_bb_frequencies): Do frequency calculation
6476 with a volatile temporary.
6478 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
6480 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
6482 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6485 * final.c (final_start_function): Don't bump profile_label_no here...
6486 (final_end_function): ...but here.
6488 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6490 * config/sparc/sparc.md (pic): New attribute.
6491 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
6493 (split after do_builtin_setjmp_setup): New.
6495 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6498 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
6501 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6503 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
6504 UNITS_PER_WORD for zero sized aggregates.
6506 2002-04-03 David S. Miller <davem@redhat.com>
6508 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
6509 one-character spec for this, just use %(link_gcc_c_sequence).
6511 2002-04-03 David S. Miller <davem@redhat.com>
6513 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
6516 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
6518 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
6519 (DWARF_FRAME_RETURN_COLUMN): Move.
6520 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6521 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
6522 * pa.c (except.h, predict.h): Include.
6524 (store_reg_modify, set_reg_plus_d): Revise prototypes.
6525 (output_ascii): Add cast.
6526 (store_reg_modify): Revise to add frame notes.
6527 (set_reg_plus_d): Likewise.
6528 (compute_frame_size): Include space for eh data registers in frame if
6529 the current function calls eh_return.
6530 (hppa_expand_prologue): Ensure register %r2 is saved if the current
6531 function calls eh_return. Save eh data registers if the current
6532 function calls eh_return. Fix code to add frame notes. Emit
6533 blockage to prevent insns with frame notes being scheduled in the
6534 delay slot of calls.
6535 (hppa_expand_epilogue): Restore eh data registers and do final stack
6536 adjustment if the current function calls eh_return. Don't add frame
6538 (output_call): Revise for change in length of call insn. Don't do
6539 return pointer adjustment for an unconditional jump in the delay slot
6540 of a call when using frame notes.
6541 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
6542 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
6543 (ARG_POINTER_CFA_OFFSET): Define.
6544 * pa.md (return_external_pic): New pattern.
6545 (prologue): Correct formatting. Use return_external_pic if current
6546 function calls eh_return.
6547 (call_internal_symref, call_value_internal_symref,
6548 sibcall_internal_symref, sibcall_value_internal_symref): Change default
6549 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
6551 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
6553 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
6554 list of targets to check using "nop" insn.
6555 * configure: Rebuilt.
6557 2002-04-04 Alan Modra <amodra@bigpond.net.au>
6559 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
6561 2002-04-03 David S. Miller <davem@redhat.com>
6563 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
6564 library sequence passed to the linker.
6565 (LINK_COMMAND_SPEC): Use it.
6566 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
6567 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
6568 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6570 2002-04-03 Jason Merrill <jason@redhat.com>
6572 * except.c (struct eh_status): Remove protect_list.
6573 (begin_protect_partials, end_protect_partials): Remove.
6574 (add_partial_entry): Remove.
6575 * except.h: Remove prototypes.
6577 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
6578 expand_decl_cleanup_eh.
6581 * tree.h (CLEANUP_EH_ONLY): New macro.
6582 * stmt.c (expand_decl_cleanup_eh): New fn.
6583 (expand_cleanups): Check CLEANUP_EH_ONLY.
6584 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
6585 Use expand_decl_cleanup_eh.
6586 (expand_stmt): Adjust.
6587 * c-common.h: Adjust prototype.
6589 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
6591 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
6592 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
6593 (cris_target_asm_function_epilogue): Ditto.
6594 (cris_initial_frame_pointer_offset): Ditto.
6595 (cris_simple_epilogue): Ditto.
6596 (cris_expand_builtin_va_arg): Variable-size types come in
6599 2002-04-03 David S. Miller <davem@redhat.com>
6601 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
6603 (set_fast_math): Correct 'fsr' type.
6605 2002-04-03 Richard Henderson <rth@redhat.com>
6608 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
6609 * toplev.c (check_global_declarations): Use it.
6610 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
6611 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6612 (LANG_HOOKS_DECLS): Add it.
6613 * langhooks.c (lhd_warn_unused_global_decl): New.
6614 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6615 * c-objc-common.c (c_warn_unused_global_decl): New.
6616 * c-tree.h (c_warn_unused_global_decl): Declare.
6617 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6619 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
6621 * langhooks-def.h (lhd_set_decl_assembler_name,
6622 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
6623 (LANG_HOOKS_INITIALIZER): Update.
6624 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
6625 * langhooks.h (struct lang_hooks): New hook.
6626 * tree.c (set_decl_assembler_name): Move to langhooks.c.
6627 (lang_set_decl_assembler_name): Remove.
6628 (init_obstacks): Don't set hook.
6629 (decl_assembler_name): New function.
6630 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
6631 (decl_assembler_name): New.
6632 (lang_set_decl_assembler_name): Remove.
6634 2002-04-03 Jakub Jelinek <jakub@redhat.com>
6636 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
6637 works properly with .hidden symbols.
6638 * configure: Rebuilt.
6639 * config.in: Rebuilt.
6640 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
6641 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
6642 properly with .hidden symbols.
6644 2002-04-03 Jakub Jelinek <jakub@redhat.com>
6647 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
6650 2002-04-03 Richard Henderson <rth@redhat.com>
6653 * sched-rgn.c (sets_likely_spilled): New.
6654 (sets_likely_spilled_1): New.
6655 (add_branch_dependences): Use it.
6657 2002-04-02 Richard Henderson <rth@redhat.com>
6660 * loop.h (LOOP_FIRST_PASS): New.
6661 * loop.c (strength_reduce): Mind it when deciding to unroll.
6662 * toplev.c (rest_of_compilation): Set it.
6664 2002-04-02 David S. Miller <davem@redhat.com>
6666 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
6667 mems_ok_for_ldd_peep when the order of the loads being examined
6669 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
6670 existing comment to increase comprehension of this situation.
6672 2002-04-02 Zack Weinberg <zack@codesourcery.com>
6674 * config/sh/sh.md: Don't use union real_extract.
6676 2002-04-02 Richard Henderson <rth@redhat.com>
6678 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
6680 2002-04-02 David O'Brien <obrien@FreeBSD.org>
6682 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
6683 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
6684 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
6685 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
6686 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
6687 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
6688 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
6689 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
6690 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
6691 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
6692 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
6693 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
6694 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
6695 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
6696 Include as many configury headers via tm_file as possible. This
6697 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
6698 * config/openbsd-oldgas.h: New file.
6699 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
6700 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
6701 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
6702 config/i386/i386-coff.h, config/i386/i386-interix.h,
6703 config/i386/iscdbx.h, config/i386/linux-aout.h,
6704 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
6705 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
6706 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
6707 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
6708 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
6709 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
6710 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
6711 config/i386/vxi386.h: Do not directly include configury headers.
6712 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
6713 Directly include configury headers that are no longer automatically
6714 included by the above headers.
6715 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
6716 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
6717 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
6718 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
6719 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
6720 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
6721 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
6722 (TARGET_VERSION): Define.
6723 * config/i386/beos-elf.h, config/i386/freebsd.h,
6724 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
6725 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
6726 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
6727 config/i386/sco5.h, config/i386/sysv4.h
6728 (TARGET_VERSION): Do not need to protect.
6729 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
6730 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
6731 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
6732 config/i386/i386-interix.h, config/i386/linux-aout.h,
6733 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
6734 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
6735 (YES_UNDERSCORES): Do not define - not needed.
6736 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
6737 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
6738 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
6739 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
6740 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
6741 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
6742 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
6743 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
6745 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
6746 Richard Henderson <rth@redhat.com>
6749 * function.c (assign_temp): Accept either type or decl argument.
6750 Detect variables whose size is too large to fit into an integer.
6751 * stmt.c (expand_decl): Pass the decl, not the type.
6753 2002-04-02 David O'Brien <obrien@FreeBSD.org>
6755 * protoize.c: Match include directory usage with cppdefault.c.
6757 2002-04-03 Jeffrey A Law (law@redhat.com)
6758 Hans-Peter Nilsson <hp@bitrange.com>
6760 * combine.c (simplify_comparison): Avoid narrowing a comparison
6761 with a paradoxical subreg when doing so would drop signficant bits.
6763 2002-04-02 Steve Ellcey <sje@cup.hp.com>
6765 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
6766 if POINTERS_EXTEND_UNSIGNED is defined.
6768 2002-04-02 Richard Henderson <rth@redhat.com>
6771 * local-alloc.c (contains_replace_regs): LO_SUM may contain
6774 2002-04-02 Richard Henderson <rth@redhat.com>
6776 * doc/standards.texi: Document required freestanding libc entry points.
6778 2002-04-02 Alan Modra <amodra@bigpond.net.au>
6780 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
6781 associated splitter. Remove MQ constraint.
6782 (ctrdi_internal4): Correct CCmode clobber.
6784 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6786 * milli64.S ($$dyncall): New function.
6787 * t-linux (LIB1ASMFUNCS): Revise module list.
6788 (LIB1ASMSRC): Use pa/milli64.S.
6790 2002-04-02 Richard Henderson <rth@redhat.com>
6792 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
6793 rename solaris_sys_varargs_h.
6795 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6797 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
6798 the same mode as its component.
6800 2002-04-02 Richard Henderson <rth@redhat.com>
6803 * final.c (this_is_asm_operands): Export.
6804 * output.h (this_is_asm_operands): Declare.
6805 * config/i386/i386.c (print_operand): Error odd asm operands.
6807 2002-04-02 Richard Henderson <rth@redhat.com>
6810 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
6812 2002-04-01 Richard Henderson <rth@redhat.com>
6815 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
6816 * fixinc/fixincl.x: Rebuild.
6818 2002-04-01 Richard Henderson <rth@redhat.com>
6820 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
6821 (atomic_alloc, atomic_free): New.
6822 (SIZE, MASK_FOR, PTR_IN): New.
6823 (emergency_reg_state, emergency_reg_state_free): New.
6824 (emergency_labeled_state, emergency_labeled_state_free): New.
6825 (reg_state_alloced, labeled_state_alloced): New.
6826 (alloc_reg_state, free_reg_state): New.
6827 (alloc_label_state, free_label_state, free_label_states): New.
6828 (push, pop, dup_state_stack, free_state_stack): Use them.
6829 (desc_label_state): Likewise.
6830 (uw_frame_state_for): Free label states and state stack.
6831 (uw_update_reg_address): Eliminate warnings.
6833 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
6835 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
6836 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
6838 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6840 * c-decl.c (grokdeclarator): Update.
6841 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6842 * c-tree.h (c_mark_addressable): New.
6843 * c-typeck.c (default_function_array_conversion, build_unary_op,
6844 build_array_ref, convert_for_assignment): Update.
6845 (mark_addressable): Rename.
6846 * calls.c (try_to_integrate, expand_call): Use langhook.
6847 * expr.c (expand_expr): Use langhook.
6848 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
6849 * langhooks.h (struct lang_hooks): New hook.
6850 * stmt.c (expand_asm_operands): Use langhook.
6851 * tree.h (mark_addressable): Remove.
6853 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6855 2002-04-01 Bob Wilson <bob.wilson@acm.org>
6857 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
6860 2002-04-01 Bob Wilson <bob.wilson@acm.org>
6862 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
6863 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
6865 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6867 * c-common.c (unsigned_conversion_warning, convert_and_check,
6868 unsigned_type, signed_type, shorten_compare,
6869 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
6870 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
6871 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
6873 * c-decl.c (grokdeclarator): Update.
6874 * c-format.c (check_format_types): Update.
6875 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6876 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6877 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
6878 * convert.c (convert_to_integer): Use new hooks.
6879 * expmed.c (make_tree): Use new hooks.
6880 * expr.c (store_expr): Use new hooks.
6881 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
6882 all_ones_mask_p, unextend, fold): Use new hooks.
6883 * langhooks.h (struct lang_hooks_for_types): New hooks.
6884 * tree.h (signed_or_unsigned_type, signed_type,
6885 unsigned_type): Remove.
6887 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6888 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6890 2002-03-31 Richard Henderson <rth@redhat.com>
6892 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
6893 (desc_frgr_mem): Fix reference to f16-f31.
6895 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6897 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
6898 RTVEC_ELT): Const-ify.
6899 * varray.h (VARRAY_CHECK): Const-ify.
6900 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
6901 ggc_mark_rtvec, ggc_mark): Const-ify.
6903 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6905 * diagnostic.c: Include langhooks-def.h.
6906 * Makefile.in (diagnostic.o): Update.
6908 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6910 * c-common.c (c_unsafe_for_reeval): Rename.
6911 * c-common.h (c_unsafe_for_reeval): Rename.
6912 * c-decl.c (finish_incomplete_decl): Rename.
6913 (c_init_decl_processing): Don't set langhook.
6914 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6915 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6916 * c-objc-common.c (c_objc_common_init): Don't set langhook.
6917 * c-tree.h (finish_incomplete_decl): Rename.
6918 * langhooks-def.h (lhd_unsafe_for_reeval): New.
6919 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
6920 (LANG_HOOKS_INITIALIZER): Update.
6921 * langhooks.c (lhd_unsafe_For_reeval): New.
6922 * langhooks.h (struct langhooks): New hooks.
6923 * toplev.c (incomplete_decl_finalize_hook): Remove.
6924 (wrapup_global_declarations): Update.
6925 * tree.c (lang_unsafe_for_reeval): Remove.
6926 (unsafe_for_reeval): Update.
6927 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
6930 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6931 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6933 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6935 * diagnostic.c (print_error_function): Remove.
6936 (default_print_error_function): Rename.
6937 (report_error_function): Update.
6938 * diagnostic.h (print_error_function): Remove.
6939 (default_print_error_function): Remove.
6940 * langhooks-def.h (struct diagnostic_context): Predeclare.
6941 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
6942 (LANG_HOOKS_INITIALIZER): Update.
6943 * langhooks.h (struct diagnostic context): Predeclare.
6944 (struct lang_hooks): New hook.
6946 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6948 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
6949 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
6951 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
6952 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
6953 of PIC_OFFSET_TABLE_REGNUM thruout.
6954 * config/rs6000/rs6000.md: Likewise.
6955 * config/rs6000/darwin.h: Likewise.
6957 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6959 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
6960 unsigned HOST_WIDE_INT, not unsigned int.
6962 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6964 PR middle-end/6096, middle-end/6098, middle-end/6099
6965 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
6967 (fill_slots_from_thread): Likewise.
6969 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6971 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
6972 floating fields in float regs.
6973 (function_arg_record_value_2): Likewise.
6975 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
6977 * config/mmix/mmix.md (define_constants): Remove misleading
6978 FIXME. Add MMIX_fp_rO_OFFSET.
6979 ("nonlocal_goto_receiver"): Don't have stack-frame address of
6980 saved rO as part of the pattern. Remove FIXME.
6981 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
6982 here, at output-time.
6984 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6987 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
6989 (output_v9branch): Likewise.
6991 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
6993 * gcc.c: Revert previous patch for now.
6994 * config/i386/djgpp.h: Likewise.
6996 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
6998 * config/mmix/crti.asm (_init): Register _fini with atexit.
6999 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7001 2002-03-31 Richard Henderson <rth@redhat.com>
7004 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7005 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7007 2002-03-31 Richard Henderson <rth@redhat.com>
7009 * libgcc2.c (__bb_exit_func): Make static.
7011 * config/alpha/alpha.md (trap): New.
7013 2002-03-31 Richard Henderson <rth@redhat.com>
7015 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7016 promoted argument types; build trap.
7017 (expand_builtin_trap): New.
7018 (expand_builtin): Use it.
7019 * stmt.c (expand_nl_goto_receivers): Likewise.
7020 * expr.h (expand_builtin_trap): Declare.
7021 * libfuncs.h (LTI_abort, abort_libfunc): New.
7022 * optabs.c (init_optabs): Init abort_libfunc.
7024 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7026 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7027 (LINK_COMMAND_SPEC): ... from here.
7028 (init_gcc_specs): Duplicate it here too, omitting
7029 shared_name in the second copy.
7030 (init_spec): Test for duplicate
7031 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7033 2002-03-30 David S. Miller <davem@redhat.com>
7035 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7036 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7038 2002-03-30 Roger Sayle <roger@eyesopen.com>
7039 Richard Henderson <rth@redhat.com>
7041 * regmove.c (combine_stack_adjustments_for_block): Avoid
7042 emitting a stack adjustment of zero bytes. Let delete_insn
7045 2002-03-30 Richard Henderson <rth@redhat.com>
7047 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7048 (sparc_emitting_epilogue): New.
7049 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7050 * config/sparc/sparc-protos.h: Update.
7051 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7052 (TARGET_SWITCHES): Update.
7053 * config/sparc/sparc.md (return): Remove.
7054 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7055 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7056 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7057 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7058 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7059 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7060 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7061 Remove MASK_EPILOGUE.
7062 * doc/invoke.texi: Update.
7064 2002-03-30 Daniel Berlin <dan@dberlin.org>
7066 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7067 CPP will start the file for us.
7069 2002-03-30 Richard Henderson <rth@redhat.com>
7072 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7073 prologue_allocate_stack.
7074 (ia64_single_set): Use insn codes for recognition of special
7075 cases, not rtl matching.
7076 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7078 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7080 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7082 2002-03-30 Richard Henderson <rth@redhat.com>
7085 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7086 or -fomit-frame-pointer with profiling.
7087 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7088 (FUNCTION_PROFILER): Do nothing.
7089 (PROFILE_HOOK): New.
7090 * config/sparc/sparc.c (sparc_override_options): Don't check
7091 code models for profiling.
7092 (sparc_function_profiler): Remove.
7093 (sparc_profile_hook): New.
7094 * config/sparc/sparc-protos.h: Update.
7096 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7098 PR optimization/6086
7099 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7100 of SUBREG of volatile MEM or because the MEM was mode dependent,
7101 return CLOBBER instead of unmodified SUBREG.
7103 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7105 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7106 when not optimizing.
7108 * toplev.c (rest_of_compilation): Cann mark_constant_function
7109 only when optimizing.
7111 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7114 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7115 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7116 (try_optimize_cfg): clear all AUX fields.
7118 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7119 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7120 (ix86_address_cost): Be prepared for SUBREGed registers.
7121 (legitimate_address_p): Accept SUBREGed registers.
7123 2002-03-29 Richard Henderson <rth@redhat.com>
7126 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7128 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7130 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7131 for aggregate and TFmode types.
7133 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7135 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7137 2002-03-29 Richard Henderson <rth@redhat.com>
7140 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7141 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7143 2002-03-29 Richard Henderson <rth@redhat.com>
7146 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7147 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7148 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7149 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7151 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7153 2002-03-29 Dale Johannesen <dalej@apple.com>
7155 * loop.c (combine_movables): Do allow combination of pseudos.
7157 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
7159 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7160 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7161 No functional change except ...
7162 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
7163 * doc/install.texi (*-*-freebsd*): Document port configuration.
7165 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7167 * Makefile.in (convert.o, calls.o, expmed.o): Update.
7168 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7170 * builtin-types.def (BT_PTRMODE): Update.
7171 * c-common.c (type_for_size): Rename c_common_type_for_size.
7172 (type_for_mode): Similarly.
7173 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7175 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7176 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7177 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7179 * c-typeck.c (common_type, comptypes, default_conversion):
7181 * calls.c: Include langhooks.h.
7182 (emit_library_call_value_1): Use new hooks. Avoid redundant
7184 * convert.c: Include langhooks.h
7185 (convert_to_pointer, convert_to_integer): Use new hooks.
7186 * except.c (init_eh): Similarly.
7187 * expmed.c: Include langhooks.h.
7188 (expand_mult_add): Use new hooks.
7189 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7190 try_casesi): Similarly.
7191 * fold-const.c (optimize_bit_field_compare, make_range,
7192 decode_field_reference, fold_truthop, fold): Similarly.
7193 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7194 put_var_into_stack): Similarly.
7195 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7196 LANG_HOOKS_TYPE_FOR_SIZE): New.
7197 (LANG_HOOKS_TYPES_INITIALIZER): Update.
7198 * langhooks.h (lang_hooks_for_types): New hooks.
7199 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7200 * tree.c (get_unwidened, get_narrower): Similarly.
7201 * tree.h (type_for_mode, type_for_size): Remove.
7202 * varasm.c (force_const_mem): Use new hooks.
7203 * utils2.c (nonbinary_modular_operation): Update.
7205 * objc-act.c (handle_impent): Update.
7206 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7209 2002-03-29 Steve Ellcey <sje@cup.hp.com>
7211 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7212 * config/ia64/ia64.c (basereg_operand): New.
7213 * config/ia64/ia64-protos.h (basereg_operand): Declare.
7214 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7216 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7218 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7219 unwind information when frame_pointer_needed.
7220 (mmix_assemble_integer): Tweak wording in comment.
7222 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7224 * Makefile.in (except.o): Update.
7225 * except.c: Include langhooks.h.
7226 (init_eh): Use langhook.
7227 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7228 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7229 (LANG_HOOKS_INITIALIZER): Update.
7230 * langhooks.h (lang_hooks_for_types): New.
7231 (struct lang_hooks): Add it.
7232 * tree.c (make_lang_type_fn, make_lang_type): Remove.
7233 * tree.h (make_lang_type_fn, make_lang_type): Remove.
7235 * alpha/alpha.c: Include langhooks.h.
7236 (alpha_build_va_list): Use langhook.
7237 * d30v/d30v.c: Include langhooks.h.
7238 (d30v_build_va_list): Use langhook.
7239 * i386/i386.c: Include langhooks.h.
7240 (ix86_build_va_list): Use langhook.
7241 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
7242 * s390/s390.c: Include langhooks.h.
7243 (s390_build_va_list): Use langhook.
7244 * stormy16/stormy16.c: Include langhooks.h.
7245 (stormy16_build_va_list): Use langhook.
7247 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7250 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
7252 (length): Compute variable length for branches/calls/jumps here.
7253 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
7254 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
7255 define branch_type attribute.
7256 (divsi3_sp32): Maximum length is 6 not 7.
7257 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7258 call_address_untyped_struct_value_sp32,
7259 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
7260 * config/sparc/sparc.c (empty_delay_slot): New function.
7261 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
7262 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
7264 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7266 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
7267 nonzero_bits if not needed.
7268 (nonzero_bits) [XOR]: Likewise.
7269 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
7270 reg_last_set_mode and mode are both MODE_INT, but not equal.
7271 (record_value_for_reg): Compute reg_last_set_nonzero_bits
7272 in nonzero_bits_mode for MODE_INT modes.
7274 2002-03-28 Richard Henderson <rth@redhat.com>
7277 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
7278 to GAS. Correct drift between alternatives.
7280 2002-03-28 Richard Henderson <rth@redhat.com>
7283 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
7285 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
7287 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
7288 emulation to the linker.
7290 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
7292 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
7293 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
7295 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
7297 * combine.c (simplify_and_const_int): Make sure to apply mask
7298 when force_to_mode returns a constant integer. PR3311.
7300 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7302 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
7304 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7306 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
7307 and Objective-C Dialect Options.
7309 2002-03-28 Richard Henderson <rth@redhat.com>
7311 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
7312 comparison should be done vs !=0 not >0 return code. Tidy cases.
7314 2002-03-28 Richard Henderson <rth@redhat.com>
7316 * c-decl.c (finish_function): New arg can_defer_p. Pass it
7317 on to c_expand_body.
7318 * c-tree.h (finish_function): Update decl.
7319 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
7321 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
7323 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
7325 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
7327 * rtlanal.c: Include flags.h
7328 (may_trap_p): Do not mark FP operations if trapping
7329 if !flag_trapping_math
7330 * Makefile.in (rtlanal.o): Add dependency on flag.h
7331 * ifcvt.c (noce_operand_ok): Avoid the lameness.
7333 2002-03-27 Zack Weinberg <zack@codesourcery.com>
7335 * mips.md: Use dconst1, not 1.0, as first argument of
7336 REAL_VALUE_LDEXP. Don't use union real_extract.
7338 2002-03-28 Alan Modra <amodra@bigpond.net.au>
7340 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
7341 rather than $target. Heed program_prefix and
7342 program_transform_name. Search for gas in cross-compiler case too.
7343 "test -x" rather than "test -f".
7344 (gcc_cv_ld): Likewise.
7345 (gcc_cv_nm): Heed program_prefix and program_transform_name.
7346 (gcc_cv_objdump): Likewise.
7347 * configure: Regenerate.
7349 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7351 * Makefile.in (attribs.o): Update.
7352 * attribs.c: Include langhooks.h.
7353 (decl_attributes): Use langhook.
7354 * c-decl.c (insert_default_attributes): Rename.
7355 * c-tree.h (c_insert_default_attributes): New.
7356 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
7357 (LANG_HOOKS_INITIALIZER): Update.
7358 * langhooks.h (struct lang_hooks): New hook.
7359 * tree.h (insert_default_attributes): Remove.
7361 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
7363 2002-03-27 Andreas Schwab <schwab@suse.de>
7365 * config/i386/i386.c (classify_argument): Also check for
7368 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7370 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
7373 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
7375 * i960.md (ret): Set PC.
7376 (nonlocal_goto): Fix expander.
7377 * builtins.c (epxand_builin_longjmp): Check that we've emitted
7380 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
7382 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
7385 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7387 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
7388 assigning to BLOCK_FOR_INSN directly.
7390 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
7392 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
7394 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7396 * c-common.c (c_expand_expr): Fix prototype.
7397 * c-common.h (c_expand_expr): Always declare, update.
7398 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7399 * c-objc-common.c (c_objc_common_init): No global hook.
7400 * expr.c (expand_expr): Use langhook.
7401 * expr.h (enum expand_modifier): Conditionally declare.
7402 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
7403 (LANG_HOOKS_INITIALIZER): Update.
7404 * langhooks.c (lhd_expand_expr): New.
7405 * langhooks.h (struct lang_hooks): New hook.
7406 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
7407 (lang_independent_init): Don't default hook.
7409 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7411 2002-03-27 Richard Henderson <rth@redhat.com>
7414 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
7415 TARGET_CONST_GP. Simplify conditions.
7417 2002-03-27 Richard Henderson <rth@redhat.com>
7419 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7420 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
7421 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
7423 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
7425 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
7426 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
7427 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
7428 Remove unnecessary masks.
7429 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
7430 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
7431 -mwindows, -mdll switches and their negations.
7433 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7435 * gcc-common.c (lang_mark_false_label_stack): Remove.
7436 * ggc.h (lang_mark_false_label_stack): Similarly.
7438 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
7440 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
7442 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
7443 or __rtems_ is defined.
7445 2002-03-26 Richard Henderson <rth@redhat.com>
7447 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
7448 if a non-trivial load was emitted.
7449 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
7450 in high+extra+low case.
7452 2002-03-26 Richard Henderson <rth@redhat.com>
7454 * config.gcc (sparc*-solaris): Use float_format=sparc.
7456 2002-03-26 Richard Henderson <rth@redhat.com>
7458 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7459 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
7460 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
7461 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
7462 (WINT_TYPE_SIZE): Fix at 32.
7464 2002-03-26 Richard Henderson <rth@redhat.com>
7466 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
7467 until after eh landing pad generation.
7468 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
7469 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
7471 2002-03-26 Richard Henderson <rth@redhat.com>
7473 * expr.h (ADD_PARM_SIZE): One more convert for INC.
7475 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
7477 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
7478 and warning switches.
7479 (cc1_options): Likewise.
7481 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
7483 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
7484 Restore more of the signal context. Set no_reg_stack_frame.
7485 * config/ia64/unwind-ia64.c (unw_state_record):
7486 Add no_reg_stack_frame, comments.
7487 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
7488 (uw_update_context): Adjust bsp when unwinding from leaf,
7489 but not signal frame.
7491 2002-03-26 David Edelsohn <edelsohn@gnu.org>
7493 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
7495 2002-03-26 Bob Wilson <bob.wilson@acm.org>
7497 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
7499 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
7502 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
7503 "Add a pool_range attribute", which was lost during the ARM/Thumb
7506 2002-03-26 Bob Wilson <bob.wilson@acm.org>
7508 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
7509 a register into the MAC16 accumulator.
7511 2002-03-26 Andrew Cagney <ac131313@redhat.com>
7513 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
7514 (Warning Options): Document -Wswitch-enum.
7515 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
7517 (warn_switch_enum): Define variables.
7518 * flags.h (warn_switch_enum): Declare variables.
7519 * stmt.c (expand_end_case_type): When warn_switch_enum /
7520 -Wswitch-enum, perform switch checks.
7523 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
7525 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
7526 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
7527 (reload_muladdsi_compare0_scratch): Delete.
7529 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
7531 * doc/install.texi (*-*-freebsd*): Update.
7533 2002-03-26 Richard Henderson <rth@redhat.com>
7535 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
7536 (SUB_PARM_SIZE): Cast DEC to ssizetype.
7538 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
7539 types from the normal argument frame.
7541 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
7542 variable sized objects by reference.
7543 (sparc_va_arg): Receive them by reference too.
7545 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
7547 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7548 code to not restoring global registers.
7550 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
7552 * Makefile.in (ggc-common.o): Update.
7553 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
7554 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
7555 * c-tree.h (c_mark_tree): New.
7556 * ggc-common.c: Include langhooks.h.
7557 (gcc_mark_trees): Use new langhook.
7558 * ggc-callbacks.c: Delete file.
7559 * ggc.h (lang_mark_tree): Remove.
7560 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
7561 (LANG_HOOKS_INITIALIZER): Update.
7562 * langhooks.h (struct lang_hooks): New hook.
7564 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
7566 2002-03-25 Zack Weinberg <zack@codesourcery.com>
7568 * doc/cpp.texi: Exclude entire Top node from printed manual.
7569 Move option index after directive index. Insert page breaks
7570 before GFDL and concept index. Index environment variables
7571 with command line options.
7572 * doc/cppenv.texi: Use @vtable for environment variable list.
7573 Add paragraph explaining semantics of empty elements in path
7574 variables. Exclude a cross-reference to Fishkill from the
7575 manpage. Remove an unnecessary cross-reference of the entry
7576 right above the referer. Don't use @anchor in text that goes
7578 * doc/cppopts.texi: Cross-reference the environment variables
7579 section, not the specific environment variable, for consistency.
7581 2002-03-25 Richard Henderson <rth@redhat.com>
7583 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
7584 anywhere in the block. Don't refer to insns that have been
7585 removed from the chain. Iterate backward through the new insns.
7586 Don't refer to edges that have been removed.
7588 2002-03-26 Alan Modra <amodra@bigpond.net.au>
7590 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
7591 test for overflow of constant.
7593 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
7596 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
7597 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
7598 these patterns on arm_archv4.
7600 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
7602 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
7605 2002-03-25 Zack Weinberg <zack@codesourcery.com>
7607 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
7608 float_handled, float_handler, float_signal, set_float_handler,
7609 and do_float_handler. Set handler for SIGFPE to crash_signal.
7610 * toplev.h: Don't prototype do_float_handler.
7612 * c-lex.c: Fold parse_float into lex_number. Make warning
7613 about portability of hex float constants more informative, and
7614 don't issue it on top of a syntax error.
7615 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
7617 * real.h: Define REAL_VALUE_ABS here...
7618 * simplify-rtx.c: ... not here. Fold check_fold_consts,
7619 simplify_unary_real, simplify_binary_real, and
7620 simplify_binary_is2orm1 into their callers.
7621 * tree.c: Fold build_real_from_int_cst_1 into caller.
7623 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
7625 * tsystem.h: Include float.h here...
7626 * libgcc2.c: ... not here.
7628 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
7630 Fixes for: PR bootstrap/3591, target/5676
7631 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
7632 defined. Do not disable exceptions or rtti.
7633 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
7634 mcore.h. Disable exceptions and rtti, since they are not
7637 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
7639 * c-decl.c (maybe_build_cleanup): Remove.
7640 * expr.c (expand_expr): Use langhook.
7641 * langhooks-def.h (lhd_return_null_tree,
7642 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
7643 (LANGHOOKS_INITIALIZER): Update.
7644 * langhooks.c (lhd_return_null_tree): New.
7645 * langhooks.h (struct lang_hooks): New hook.
7646 * tree-inline.c (initialize_inlined_parameters): Use langhook.
7647 * tree.h (maybe_build_cleanup): Remove.
7649 2002-03-25 Jakub Jelinek <jakub@redhat.com>
7651 * regrename.c (build_def_use): Move recog_memoized
7652 before extract_insn.
7654 2002-03-25 Jakub Jelinek <jakub@redhat.com>
7657 * expr.c (emit_group_store): Handle storing into CONCAT.
7659 2002-03-25 Jakub Jelinek <jakub@redhat.com>
7661 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
7662 corresponding MATCH_DUP.
7664 2002-03-24 Richard Henderson <rth@redhat.com>
7666 * unroll.c (unroll_loop): Zero label_map.
7668 * gcse.c: Include except.h.
7669 * Makefile.in (gcse.o): Update.
7671 2002-03-24 Richard Henderson <rth@redhat.com>
7673 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
7674 Do resolve_unique_section before shared data clause.
7676 2002-03-24 Richard Henderson <rth@redhat.com>
7678 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
7680 2002-03-24 Richard Henderson <rth@redhat.com>
7682 * recog.c (peephole2_optimize): Split blocks when EH insns are
7683 generated in the middle of a block. Do global life update if
7686 2002-03-24 Richard Henderson <rth@redhat.com>
7688 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
7690 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
7693 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
7694 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
7695 (init_dependency_output): Don't make no_output decision here.
7697 2002-03-24 Andrew Cagney <ac131313@redhat.com>
7699 * stmt.c (check_for_full_enumeration_handling): Remove tests of
7700 warn_switch. Update description.
7701 (expand_end_case_type): Call check_for_full_enumeration_handling
7704 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7706 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
7707 (m68hc11_split_move): Call it to see if the source and destination
7708 operands use the same direction auto inc/dec mode, otherwise make the
7709 source an offsetable memory operand and generate an add.
7711 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7713 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
7714 register for operand 2.
7715 ("*subsi3_zero_extendqi"): Likewise.
7716 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
7717 bits so that it is compatible with a pop.
7718 ("*andhi3_gen"): Likewise.
7719 ("xorhi3"): Likewise.
7721 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
7723 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
7725 (cpp_post_options): ... not here.
7727 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
7728 Aldy Hernandez <aldyh@redhat.com>
7730 Removal of separate preprocessor cpp0.
7732 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
7733 cpp0, install-common): Update.
7734 * c-common.c (flag_preprocess_only): New.
7735 (c_common_init): Preprocess for -E.
7736 * c-common.h (flag_preprocess_only): New.
7737 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
7738 * c-objc-common.c (c_init_decl_processing): Exit quickly
7739 for NULL return from c_common_init.
7740 * cpplib.h (cpp_preprocess_file): New.
7741 * cppmain.c (main, general_init, pfile, progname): Remove.
7742 (do_preprocessing): Rename cpp_preprocess_file, don't call
7743 cpp_finish. Don't close stdout here.
7744 (setup_callbacks): Update prototype.
7745 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
7747 * tradcpp.c (main): Ignore -quiet.
7749 * lang-specs.h (default_compilers): Preprocess with cc1obj.
7751 2002-03-24 Richard Henderson <rth@redhat.com>
7753 PR optimization/5742
7754 * machmode.def: Add inner mode field to complex modes.
7755 * config/mips/mips.c (mips_function_value): Always define. Add
7756 new argument to handle libcalls.
7757 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
7758 (FUNCTION_VALUE): Likewise.
7759 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
7760 * config/mips/mips-protos.h: Update.
7762 2002-03-23 Richard Henderson <rth@redhat.com>
7764 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
7765 * config/sparc/sparc-protos.h: Update.
7766 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
7768 2002-03-23 Richard Henderson <rth@redhat.com>
7770 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
7771 _start or _init begins the text segment.
7773 2002-03-23 David Edelsohn <edelsohn@gnu.org>
7775 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
7776 not HOST_WIDEST_INT.
7777 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
7779 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
7782 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
7783 operand argument to output_return_instruction.
7784 * arm.c (arm_print_operand, case 'd'): If the operand is
7785 const_true_rtx then just return.
7786 (arm_print_operand, case 'D'): If the operand is const_true_rtx
7789 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7791 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
7792 (Warning Options): Document -Wswitch-default.
7793 * toplev.c (W_options): Add -Wswitch-default. Update comment on
7795 (warn_switch_default): Define variable.
7796 (warn_switch): Update comment.
7797 * flags.h (warn_switch_default): Declare variable.
7798 (warn_switch): Update comment.
7799 * stmt.c (expand_end_case): Check for and, when
7800 warn_switch_no_default, warn of a missing default case.
7802 2002-03-23 Alan Modra <amodra@bigpond.net.au>
7804 * real.h (N): Special case 128 bit doubles.
7806 * combine.c (simplify_comparison): When widening modes, ignore
7807 sign extension on CONST_INTs.
7809 2002-03-22 Bob Wilson <bob.wilson@acm.org>
7811 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
7812 passed to adjust_address. Fix comment formatting.
7815 2002-03-22 Zack Weinberg <zack@codesourcery.com>
7817 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
7818 Always make REAL_VALUE_TYPE a struct containing an array of
7819 HOST_WIDE_INT, not a double. Tidy up the code deciding how
7820 big it is. Don't declare or use union real_extract.
7822 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
7823 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
7824 (print_operand), config/arm/arm.c (output_move_double),
7825 config/arm/arm.md (consttable_4, consttable_8),
7826 config/romp/romp.c (output_fpops), config/s390/s390.h
7827 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
7828 (xtensa_output_literal): Don't use union real_extract.
7830 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
7831 (sfmode_constant_to_ulong), config/ns32k/merlin.h
7832 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
7833 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
7834 (PRINT_OPERAND): Don't use local version of union
7837 * config/convex/convex.c (check_float_value), config/vax/vax.c
7838 (vax_float_literal), config/m88k/m88k.md (divdf3),
7839 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
7840 config/pdp11/pdp11.c (output_move_quad): Don't do host
7841 arithmetic on target floating point quantities.
7843 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
7844 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
7846 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
7847 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
7849 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
7850 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
7852 * print-rtl.c (print_rtx): Disable code which needs
7853 floating-point emulator.
7854 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
7855 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
7856 depending on HOST_FLOAT_FORMAT to be defined properly.
7858 * config/1750a/1750a.c (get_double, float_label): Delete.
7859 (print_operand): Delete huge commented-out chunk. Use
7860 REAL_VALUE_TO_DECIMAL.
7861 * config/1750a/1750a-protos.h: Delete prototypes of deleted
7863 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
7865 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
7866 Use REAL_VALUE_TO_DECIMAL as ELF version does.
7867 * config/m88k/m88k.c (real_power_of_2_operand,
7868 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
7869 real_extract out of the union; run the input through
7870 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
7871 from that into the union.
7872 * config/pdp11/pdp11.c (output_move_double): Rearrange
7873 parentheses to make automatic indenter happy.
7875 * doc/tm.texi (Cross-compilation): Rename node to "Floating
7876 Point" and rewrite to describe current situation. Also adjust
7877 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
7879 * doc/rtl.texi: Adjust cross reference.
7881 2002-03-22 Bob Wilson <bob.wilson@acm.org>
7883 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
7884 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
7885 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
7886 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
7887 prevent use of sp as a reload register.
7888 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
7889 non_acc_reg_operand.
7890 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
7891 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
7892 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
7893 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
7895 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
7897 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
7898 * cpplex.c (unterminated): Delete.
7899 (parse_string): No string literal may extend over multiple
7900 lines. Suppress the error when preprocessing assembly.
7901 * cppmain.c (scan_translation_unit): Strings are single-line.
7903 * doc/cpp.texi: Update to match.
7905 2002-03-22 Jakub Jelinek <jakub@redhat.com>
7907 PR optimization/5854
7908 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
7910 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
7911 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
7912 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
7913 const0 if scratch register was not allocated.
7914 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
7915 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
7917 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
7918 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
7919 with GEN_INT (...) everywhere. Remove constraints in define_split
7921 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
7922 require scratch register for setting 0 into regs/non-pushable memory.
7924 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
7926 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
7927 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
7929 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
7931 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
7932 * cppinit.c (cpp_create_reader): On by default.
7933 (cpp_handle_option): Handle -W[no-]endif-labels.
7934 (cpp_post_options): Also enable if -pedantic.
7935 * cpplib.c (do_else): Use it.
7936 (do_endif): Likewise.
7937 * doc/cppopts.texi: Document new option.
7938 * doc/invoke.texi: Document new option.
7940 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
7942 * config/i386/i386.c, config/i386/i386.md: Change all occurences
7943 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
7945 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
7947 * flow.c (calculate_global_regs_live): Clear aux fields of
7950 2002-03-22 Jakub Jelinek <jakub@redhat.com>
7952 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
7953 REG or MEM subregs, pass rtx * instead of rtx to it.
7954 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
7955 rtx * instead of rtx to alter_subreg.
7956 * config/m32r/m32r.c (gen_split_move_double): Likewise.
7957 * config/pj/pj.c (pj_output_rval): Likewise.
7959 2002-03-22 Richard Henderson <rth@redhat.com>
7962 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
7963 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
7964 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
7965 (ia64_expand_prologue): Look at int_regs, not words, for number
7966 of incomming int regs.
7968 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
7970 * expr.c (expand_expr): A RESULT_DECL is part of a call.
7972 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
7974 * toplev.c (flag_loop_optimize, flag_crossjumping):
7975 New static variables.
7976 (rest_of_compilation): Conditionalize crossjumping and
7978 (parse_options_and_default_flags): Default loop_optimize and
7980 (lang_independent_options): Add -fcrossjumping and -floop-optimize
7981 * invoke.texi (crossjumping, loop-optimize): Document.
7983 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7985 * real.c (eiisneg): Move outside #ifdef NANS.
7987 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
7989 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
7990 frequencies match; avoid match on different loop depths.
7991 (try_crossjump_to_bb): Kill tests that no longer brings time
7993 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
7995 (split_edge): Likewise.
7997 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8000 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8001 * cfgrtl.c: Include insn-config.h
8002 (split_block) Dirtify block in presence of conditional execution
8004 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8006 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8007 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8008 (function_arg): Constify CUMULATIVE_ARGS.
8009 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8010 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8011 (UNITS_PER_DOUBLE): New macro.
8012 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8013 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8014 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8015 fp_regs and stack_words.
8016 (EABI_FLOAT_VARARGS_P): New macro.
8017 * config/mips/mips.c (struct mips_arg_info): New.
8018 (mips_arg_info): New function.
8019 (function_arg_advance): Use it. Add adjustment instructions here
8020 rather than in function_arg.
8021 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8022 for VOIDmode at the beginning of the function.
8023 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8024 (function_arg_pass_by_reference): Likewise.
8025 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8026 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8027 (mips_va_start): Likewise. Use the new stack_words field of
8028 CUMULATIVE_ARGS to set up overflow area. Reformat.
8029 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8030 doubles and other types, aligning the overflow pointer for non-doubles
8031 too. Remove some code duplication. Replace hard-coded constants.
8033 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8035 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8036 (CLASS_UNITS): Undefine.
8037 (CLASS_MAX_NREGS): Use FP_INC.
8038 * config/mips/mips.c (compute_frame_size): Likewise.
8039 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8041 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8043 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8044 prototype, and handle lexing numbers and identifiers.
8045 (parse_identifier): Update to new form of parse_slow.
8046 (parse_number): Fast path only, use parse_slow otherwise.
8047 (_cpp_lex_direct): Update calls to parse_number.
8049 2002-03-21 DJ Delorie <dj@redhat.com>
8051 * bb-reorder.c (make_reorder_chain_1): Protect against
8052 when redundant edges are omitted.
8053 * predict.c (dump_prediction): Likewise.
8055 2002-03-21 Richard Henderson <rth@redhat.com>
8058 * fixinc/inclhack.def (solaris_stdio_tag): New.
8059 * fixinc/fixincl.x: Regenerate.
8061 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8064 * c-typeck.c (process_init_element): Flag non-static
8065 initialization of a flexible array member as illegal.
8067 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8069 * config/rs6000/t-linux64: New.
8070 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8071 t-ppccomm. Use t-rs6000 and t-linux64.
8072 (powerpc64-*-gnu* <tmake_file>): Likewise.
8073 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8074 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8075 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8077 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8079 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8080 flag_really_no_inline instead of optimize == 0.
8082 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8084 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8086 * flags.h (flag_really_no_inline): New.
8088 * c-common.c (c_common_post_options): Initialize
8089 flag_really_no_inline.
8091 * toplev.c (flag_really_no_inline): New.
8093 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8095 * config/avr/avr.md (length): Fix length computation for
8096 conditional branches.
8098 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8100 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8101 sdbout.o, profile.o): Update.
8102 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8104 * c-common.h (gettags): Move here from tree.h.
8105 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8106 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8107 * dbxout.c (dbxout_init): Use getdecls langhook.
8108 * expr.c (expand_expr): Use insert_block langhook.
8109 * fold-const.c: Include langhooks.h.
8110 (fold_range_test, fold_binary_op_with_conditional_arg,
8111 fold): Use global_bindings_p langhook.
8112 * integrate.c (expand_inline_function): Use insert_block langhook.
8113 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8114 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8115 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8116 LANG_HOOKS_GETDECLS): New.
8117 (LANG_HOOKS_INITIALIZER): Update.
8118 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8120 * langhooks.h (struct lang_hooks_for_decls): New.
8121 (struct lang_hooks): Update.
8122 * profile.c: Include langhooks.h.
8123 (output_func_start_profiler): Use new langhooks.
8124 * sdbout.c: Include langhooks.h.
8125 (sdbout_init, sdbout_finish): Use getdecls langhook.
8126 * stmt.c: Include langhooks.h.
8127 (expand_fixup, fixup_gotos): Use new langhooks.
8128 * stor-layout.c: Include langhooks.h.
8129 (variable_size): Use global_bindings_p langhook.
8130 * toplev.c (compile_file): Use getdecls langhook.
8131 * tree-inline.c (remap_block): Use insert_block langhook.
8132 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8133 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8135 2002-03-21 Richard Henderson <rth@redhat.com>
8137 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8138 constants in .data when -fpic.
8140 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8142 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8145 2002-03-21 Tom Tromey <tromey@redhat.com>
8147 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
8149 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8151 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8153 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8155 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8156 Richard Henderson <rth@redhat.com>
8159 * c-common.c (c_expand_expr): Preserve result of a statement
8160 expression if needed.
8162 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8165 * genrecog.c (maybe_both_true_mode): Remove.
8166 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8167 * machmode.def (Pmode): Likewise.
8169 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
8171 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8172 (nonlocal_mentioned_p_1): New function.
8173 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8174 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8175 (mark_constant_function): Recognize pure functions.
8176 * rtl.h (global_reg_mentioned_p): New prototype.
8177 * rtlanal.c (global_reg_mentioned_p,
8178 global_reg_mentioned_p_1): New function.
8180 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8182 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8184 * fixinc/fixincl.x: Regenerate.
8186 2002-03-20 Jason Merrill <jason@redhat.com>
8188 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8190 2002-03-20 Michael Meissner <meissner@redhat.com>
8192 * doc/invoke.texi (Optimize Options): Document that -O2 sets
8195 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8197 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8198 ".literal_position" directive before the constant pool.
8200 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8202 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8203 Add Craig Rodrigues.
8204 Add Brad Lucier to testers.
8206 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8209 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8211 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8212 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8213 instead of insn_extract.
8215 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8218 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8220 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8221 stmt if some case has been output.
8223 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8226 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8227 movsfcc_1, movdfcc_1): Add %O2.
8228 * config/i386/i386.c (print_operand): Handle %ON.
8229 Print . before float condition codes in Sun as cmov syntax.
8230 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
8231 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
8234 2002-03-20 Philip Blundell <pb@nexus.co.uk>
8236 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
8237 return instruction if PC was popped.
8239 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8241 * config/xtensa/xtensa.md: Remove unused type attributes.
8242 (adddi_carry, subddi_carry): Change type attribute to "multi".
8244 2002-03-19 Dale Johannesen <dalej@apple.com>
8246 PR optimization/5999, middle-end/5731
8247 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
8248 multiplications by reciprocals.
8250 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
8252 * Makefile.in: Update.
8253 * c-common.c: Include langhooks.h.
8254 (inline_forbidden_p): Use new hook.
8255 * diagnostic.c: Include langhooks.h.
8256 (format_with_decl, announce_function,
8257 default_print_error_function): Use new hook.
8258 * dwarf2out.c (dwarf2_name): Use new hook.
8259 * function.c: Include langhooks.h.
8260 (init_function_start): Use new hook.
8261 * langhooks-def.h (lhd_decl_printable_name): New.
8262 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
8263 (LANGHOOKS_INITIALIZER): Update.
8264 * langhooks.c (lhd_decl_printable_name): New.
8265 * langhooks.h (struct lang_hooks): New hook.
8266 * toplev.c (decl_name, decl_printable_name): Remove.
8267 (open_dump_file): Use new hook.
8268 (process_options): Remove old hook.
8269 * tree.h (decl_printable_name): Remove.
8271 * objc-act.c (objc_init): Remove old hook.
8272 (objc_printable_name): Export.
8273 * objc-act.h (objc_printable_name): New.
8274 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8276 2002-03-19 Jim Blandy <jimb@redhat.com>
8278 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
8279 the start_source_file debug hook, not the current line number.
8281 2002-03-19 Richard Henderson <rth@redhat.com>
8283 * flow.c (EH_USES): Provide default.
8284 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
8285 * doc/tm.texi (EH_USES): New.
8287 * config/ia64/ia64.c (ia64_eh_uses): New.
8288 * config/ia64/ia64-protos.h: Update.
8289 * config/ia64/ia64.h (EH_USES): New.
8291 2002-03-19 Richard Henderson <rth@redhat.com>
8293 * varasm.c (output_constant_def): Fix stupid typo.
8295 2002-03-19 Richard Henderson <rth@redhat.com>
8298 * except.c (current_function_has_exception_handlers): New.
8299 * except.h: Declare it.
8300 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
8301 Combine tests that disable all sibcalls for the function.
8303 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
8305 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
8308 2002-03-19 Richard Henderson <rth@redhat.com>
8311 * config/ia64/ia64.c: Revert 2002-03-01 patch.
8312 * config/ia64/ia64.h (INIT_EXPANDERS): New.
8314 2002-03-19 Jim Blandy <jimb@redhat.com>
8316 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
8317 name, even if the replacement list contains no tokens, as required
8320 2002-03-19 Jason Merrill <jason@redhat.com>
8322 * varasm.c (globalize_decl): Get the name from the RTL, not
8323 DECL_ASSEMBLER_NAME.
8325 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
8327 2002-03-19 Bob Wilson <bob.wilson@acm.org>
8329 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
8330 subdi_carry): Define.
8332 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8334 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
8335 about -fpic/-fPIC if extra_warnings set.
8337 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8339 * expr.c (expand_expr): Sign-extend CONST_INT generated from
8340 TREE_STRING_POINTER.
8341 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
8343 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8345 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
8346 in favor of SP if FRAME_POINTER_REQUIRED is false.
8348 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
8350 * emit-rtl.c (gen_int_mode): New function.
8351 * rtl.h: Prototype for it.
8352 * combine.c (make_extraction, simplify_comparison), expmed.c
8353 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
8354 (convert_modes, store_field), optabs.c (expand_fix),
8355 simplify-rtx.c (neg_const_int, simplify_unary_real),
8357 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
8358 Use it instead of GEN_INT (trunc_int_for_mode (...)).
8360 2002-03-19 Jakub Jelinek <jakub@redhat.com>
8363 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
8364 convert_parm_for_inlining.
8365 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
8367 * langhooks-def.h: Likewise.
8368 * objc/objc-lang.c: Likewise.
8369 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
8371 * tree-inline.c (initialize_inlined_parameters):
8372 Call convert_parm_for_inlining lang hook if needed.
8373 * c-typeck.c (c_convert_parm_for_inlining): New function.
8374 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
8376 2002-03-18 Mark Mitchell <mark@codesourcery.com>
8378 * calls.c (precompute_arguments): Do not assume that temporaries
8379 can be destroyed after expanding the argument.
8380 (expand_call): Likewise.
8382 2002-03-15 Eric Christopher <echristo@redhat.com>
8384 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
8385 Fix register preference on last change.
8386 * config/mips/mips.c (mips_return_in_memory): New function.
8387 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
8388 * config/mips/mips-protos.h: Declare.
8389 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
8390 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
8392 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
8394 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
8396 (anddi3, iorsi3): Likewise.
8398 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
8399 use %gprel for symbols that are going to be placed in linkonce
8402 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
8403 RETURN_ADDRESS_POINTER_REGNUM to $ra.
8404 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
8405 not needed. Disregard leaf_function_p().
8406 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
8407 mips16 frame pointer.
8408 * config/mips/mips.md (store ra): Only to small SP offsets.
8409 2001-08-22 Graham Stott <grahams@redhat.com>
8410 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
8411 return a REG rtx for the return address register.
8413 2002-03-18 Bob Wilson <bob.wilson@acm.org>
8415 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
8416 constant-pool addresses as "mode-dependent".
8417 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
8419 2002-03-18 Jakub Jelinek <jakub@redhat.com>
8422 * expr.c (emit_group_load): Use extract_bit_field if
8423 needed for CONCAT arguments.
8425 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
8428 * arm.md (tablejump): Make this a define_expand. For PIC add the
8429 offset to the base of the table.
8430 (thumb_tablejump): Matcher for Thumb tablejump insn.
8431 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
8432 as the difference of two labels.
8433 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8434 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
8436 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
8437 * arm.c (get_jump_table_size): If the table is not in the text
8438 section, return zero.
8440 2002-03-18 Bernd Schmidt <bernds@redhat.com>
8442 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
8444 (arm_reload_out_hi): Use gen_lowpart instead of
8445 gen_rtx_SUBREG to access QImode components.
8446 * config/arm/arm.md: Disable zero_extend split for QImode
8447 subregs in BIG_ENDIAN mode.
8448 (storehi_bigend): Match use of least significant byte.
8449 (storeinthi): Remove extraneous SUBREG.
8450 Add missing construction of operands[2].
8451 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
8452 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
8453 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
8455 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
8457 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
8460 2002-03-17 Richard Henderson <rth@redhat.com>
8462 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
8465 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8467 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
8468 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
8470 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8472 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
8474 * predict.c (estimate_bb_frequencies): Delete unused variables.
8476 2002-03-17 Richard Henderson <rth@redhat.com>
8478 * config/ia64/ia64.c (ia64_attribute_table): Move before
8479 targetm definition. Make static.
8481 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
8483 * c-common.h (yyparse, c_common_parse_file): New.
8484 * c-lang.c: Include c-common.h.
8485 (LANG_HOOKS_PARSE_FILE): Redefine.
8486 * c-lex.c: Include c-common.h.
8487 (yyparse): Rename c_common_parse_file. Call yyparse.
8488 * c-parse.in (yyparse): Remove macro.
8489 * c-tree.h (yyparse_1): Remove.
8490 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
8491 (LANG_HOOKS_INITIALIZER): Update.
8492 * langhooks.h (struct lang_hoooks): New hook parse_file.
8493 * toplev.c (compile_file): Use parse_file hook.
8494 * tree.h (yyparse): Remove.
8495 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
8497 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8499 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
8500 float_truncate, not fix.
8501 ("*truncdfsf2_real"): Ditto.
8502 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
8504 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
8506 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
8508 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
8509 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
8510 where appropriate. Make the second reference to
8511 leaf_function_p a function call, as intended. Reindented.
8513 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
8514 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
8516 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
8517 add register to non-constant into sp.
8519 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
8520 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
8521 (mips16_gp_pseudo_rtx): Lose.
8522 (INIT_EXPANDERS): Deleted.
8523 * config/mips/mips.c (mips_init_machine_status): New.
8524 (mips_free_machine_status): New.
8525 (mips_mark_machine_status): New.
8526 (override_options): Set them.
8527 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
8528 (struct machine_function): ... new. Replaced all references.
8529 (mips_add_gc_roots): Don't mark them.
8530 (embedded_pic_fnaddr_reg): New, extracted from...
8531 (embedded_pic_offset): ... here.
8532 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
8535 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
8537 * cppinit.c: Revert -MD removal.
8539 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8541 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
8542 soft registers by default for 68HC12.
8543 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
8544 when compiling with -fomit-frame-pointer.
8545 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
8546 (expand_epilogue): Likewise.
8547 (m68hc11_gen_rotate): Use exg when rotating by 8.
8549 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8551 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
8552 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
8553 (splits): Remove unused add splits.
8554 ("*addhi3_68hc12"): Tune constraints.
8555 ("addhi_sp"): Try to use X instead of Y in all cases and if the
8556 constant fits in 8-bits and D is dead use abx/aby instructions.
8557 ("*addhi3"): Remove extern declaration of ix_reg.
8558 ("*subsi3"): Optimize and provide new split.
8559 ("subhi3"): Cleanup.
8560 ("*subhi3_sp"): Avoid saving X if we know it is dead.
8561 (arith splits): For 68hc12 save the address register on the stack
8562 and do the arithmetic operation with a pop.
8564 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8566 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
8567 allocating QImode in address registers.
8568 ("*movqi_m68hc11"): Likewise.
8570 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
8572 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
8574 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
8576 * cppinit.c (print_help): Display -MD and -MMD.
8577 Don't display usage string. Update assertion syntax and
8579 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
8580 (cpp_handle_option): Update.
8582 2002-03-15 Chris Demetriou <cgd@broadcom.com>
8584 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
8585 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
8586 and define it so that regardless of target CPU size,
8587 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
8588 of "int" rather than "long."
8590 2002-03-15 Richard Henderson <rth@redhat.com>
8592 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
8595 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8597 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
8598 ("tstqi" split): Avoid using memory for tstqi on address register.
8599 (splits): Remove constraints.
8600 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
8601 ("cmpdf", "cmpsf"): Remove since not used.
8602 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
8603 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
8605 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8607 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
8608 ("neghi2"): Tighten constraints.
8609 ("one_cmplsi2"): Optimize and simplify split.
8610 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
8612 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8614 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
8615 and split of AND operation to clear the upper bits.
8616 ("*logicalsi3_zextqi"): Likewise.
8617 ("*logicallhi3_zexthi_ashift8"): Likewise.
8618 ("*logicalsi3_silshr16"): Likewise.
8619 ("logicalsi3_silshl16"): Likewise.
8620 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
8622 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8624 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
8625 (m68hc11_indirect_p): New function.
8626 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
8627 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
8629 (asm_print_register): Likewise.
8630 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
8631 (m68hc11_indirect_p): Declare.
8632 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
8633 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
8634 (TARGET_SWITCHES): New option -mrelax.
8635 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
8637 ("iorsi3", "xorsi3"): Likewise.
8638 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
8639 ("*andhi3_mem"): New to handle destination in memory with bclr
8640 and a scratch register.
8641 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
8642 ("*andhi3_const"): New when operand2 is constant.
8643 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
8644 ("*andhi3_gen"): Cleanup of the old "andhi3".
8645 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
8646 ("xorqi3"): Update constraints.
8648 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8650 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
8651 for reg_equiv_memory_loc when the operand is a register that does
8652 not get a hard register (stack location).
8653 (tst_operand): After reload, accept all memory operand.
8654 (symbolic_memory_operand): Fix detection of symbolic references.
8655 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
8656 accept symbols and any constant.
8658 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8660 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
8661 note on the insn that sets the soft frame register.
8662 (must_parenthesize): ix and iy are also reserved names.
8663 (print_operand_address): One more place where parenthesis are required
8664 to avoid confusion with register names.
8665 (m68hc11_gen_movhi): Allow push of stack pointer.
8666 (m68hc11_check_z_replacement): Fix handling of parallel with a
8668 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
8669 the replacement register is.
8670 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
8671 and D8_REGS classes.
8672 (MODES_TIEABLE_P): All modes are tieable except QImode.
8674 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8676 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
8677 (___subdi3): Likewise.
8678 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
8679 (__map_data_section): Optimize 68hc11 case.
8681 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8683 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
8684 than a shift to avoid adding a register with itself.
8685 (m68hc11_memory_move_cost): Take into account NO_REGS.
8686 (m68hc11_register_move_cost): Update and use memory move cost
8688 (m68hc11_address_cost): Make cost of valid offset not 0 so that
8689 it gives more opportunities to cse to optimize.
8690 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
8691 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
8693 2002-03-15 Mark Mitchell <mark@codesourcery.com>
8695 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
8696 * c-common.def (CLEANUP_STMT): New tree node.
8697 * c-common.h (CLEANUP_DECL): New macro.
8698 (CLEANUP_EXPR): Likewise.
8699 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
8700 * expr.c (expand_expr): Tidy.
8701 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
8702 * tree-inline.c (initialize_inlined_parameters): Clean up
8703 new local variables.
8705 2002-03-15 Jakub Jelinek <jakub@redhat.com>
8708 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
8709 before movrXX only, use reg_overlap_mentioned_p.
8710 Only special case NE if just one insn can be generated.
8712 2002-03-15 Jason Merrill <jason@redhat.com>
8714 * varasm.c (assemble_variable): Call resolve_unique_section before
8715 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
8718 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
8721 * arm.md (split pattern for thumb shiftable immediates): Add comment
8722 explaining non-obvious test.
8724 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
8727 * arm.md (movaddr, movaddr_insn): Delete.
8729 2002-03-15 Jason Merrill <jason@redhat.com>
8731 * toplev.c (wrapup_global_declarations): Clarify variable handling.
8732 -fkeep-static-consts doesn't apply to comdats.
8734 2002-03-14 Richard Henderson <rth@redhat.com>
8736 * c-decl.c: Include c-pragma.h.
8737 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
8738 (finish_function): Tidy.
8739 * c-pragma.c: Include c-common.h.
8740 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
8741 (handle_pragma_weak): Use them.
8742 (init_pragma): Register pending_weaks.
8743 * c-pragma.h (maybe_apply_pragma_weak): Declare.
8744 * print-tree.c (print_node): Print DECL_WEAK.
8745 * varasm.c (mark_weak_decls): Remove.
8746 (remove_from_pending_weak_list): Remove.
8748 (asm_emit_uninitialised): Call globalize_decl for weak commons.
8749 (weak_decls): Make a tree_list.
8750 (declare_weak): Cons weak_decls directly.
8751 (globalize_decl): Remove weak_decls elements directly.
8752 (weak_finish): Simplify weak_decls walk. Don't weaken unused
8753 symbols. Don't pretend to handle aliases.
8754 (init_varasm_once): Update weak_decls registry.
8755 * Makefile.in: Update dependencies.
8757 2002-03-14 Richard Henderson <rth@redhat.com>
8760 * config/ia64/ia64.c: Include tm_p.h last.
8761 (gen_nop_type): Remove duplicate definition.
8762 (cycle_end_fill_slots): Set sched_data for second L slot.
8763 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
8764 (nop_cycles_until): Fix typos.
8766 2002-03-15 Jakub Jelinek <jakub@redhat.com>
8768 PR optimization/5891
8769 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
8771 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
8773 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
8774 descriptors correctly.
8776 2002-03-14 Michael Meissner <meissner@redhat.com>
8778 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
8779 100, allowing MAX_UNROLLED_INSNS to be overridden.
8781 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
8784 * unroll.c (params.h): Include.
8785 (MAX_UNROLLED_INSNS): Delete, now in params.h.
8787 * doc/invoke.texi (--param max-unroll-insns): Document.
8789 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
8791 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
8793 * arm.md: Fix warnings about constraints in peepholes and splits.
8795 2002-03-14 Zack Weinberg <zack@codesourcery.com>
8797 * cpphash.h (struct lexer_state): Remove line_extension member.
8798 * cpplib.c (dequote_string, do_linemarker): New functions.
8799 (linemarker_dir): New data object.
8800 (DIRECTIVE_TABLE): No longer need to interpret #line in
8801 preprocessed source. Delete obsolete comment about return
8803 (end_directive, directive_diagnostics, _cpp_handle_directive):
8804 Don't muck with line_extension.
8805 (directive_diagnostics): No need to issue warnings for
8807 (_cpp_handle_directive): Issue warnings for linemarkers here,
8808 when appropriate. Dispatch linemarkers to do_linemarker, not
8810 (do_line): Code to handle linemarkers split out to do_linemarker.
8811 Convert escape sequences in filename argument, both places.
8813 * cppmacro.c (quote_string): Rename cpp_quote_string and
8814 export. All callers changed.
8815 * cpplib.h (cpp_quote_string): Prototype.
8816 * cppmain.c (print_line): Call cpp_quote_string on to_file
8819 * doc/cpp.texi: Document that escapes are now interpreted in
8820 #line and in linemarkers, and that non-printing characters are
8821 converted to octal escapes when linemarkers are generated.
8823 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
8825 * emit-rtl.c (try_split): Use delete_insns.
8826 * recog.c (split_all_insns): Fix terminating condition.
8828 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
8829 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8832 * arm.c (arm_output_epilogue): Fix floating-point register save
8833 adjustment when using a frame pointer.
8835 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
8837 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
8838 * config/mips/mips.c (compute_frame_size): Retrofit them here.
8839 (save_restore_insns, mips_expand_epilogue): And here.
8840 (build_mips16_call_stub): And here.
8841 (mips_function_value): Use the new macros to decide whether a single
8842 or complex float can be returned in floating-point registers. Return
8843 a parallel rtx in the complex case.
8845 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
8847 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
8848 call after liveness analysis.
8850 * recog.c (split_insn): Use delete_insn_and_edges.
8852 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
8853 instructions to have branch prediction notes.
8854 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
8856 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
8858 * configure.in: Don't pass -Wno-long-long to a ADA compiler
8859 that doesn't support it.
8860 * configure: Regenerate.
8862 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8865 * config/sparc/sparc.md (normal_branch, inverted_branch,
8866 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
8867 inverted_fp_branch): Adjust calls to output_cbranch.
8868 Set length attribute.
8869 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
8870 output_v9branch. Set length attribute.
8871 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
8873 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
8874 (output_cbranch): Likewise. Handle far branches.
8875 (output_v9branch): Handle far branches.
8876 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
8878 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
8879 noov_compare64_op predicates.
8881 2002-03-13 Jason Merrill <jason@redhat.com>
8883 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
8884 into the function and constify it.
8885 * gthr-dce.h, gthr-solaris.h: Likewise.
8887 2002-03-13 David Edelsohn <edelsohn@gnu.org>
8889 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
8890 * config/rs6000/rs6000.c (rs6000_va_arg): Use
8891 std_expand_builtin_va_arg if not ABI_V4.
8893 2002-03-13 Jason Merrill <jason@redhat.com>
8895 * varasm.c (globalize_decl): New fn.
8896 (assemble_start_function): Use it.
8897 (asm_emit_uninitialized): Use it.
8898 (assemble_alias): Use it.
8899 (assemble_variable): Use it.
8901 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
8903 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
8904 2002-03-12 internal visibility change.
8905 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
8906 visibility into SYMBOL_REF_FLAG.
8908 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
8910 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
8911 VOIDmode operand. Add compile-time optimization for constant results.
8913 2002-03-12 Jason Merrill <jason@redhat.com>
8915 * c-typeck.c (convert_for_assignment): Don't allow conversions
8916 between pointers and references. Only allow lvalues to convert to
8919 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
8921 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
8922 before prologue, to avoid scheduling problems.
8924 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8926 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
8927 (ELIMINABLE_REGS): Add sfp->sp.
8928 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
8930 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8932 PR optimization/5892
8933 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
8935 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8937 * loop.c (basic_induction_var): Don't call convert_modes if mode
8938 classes are different.
8940 2002-03-12 Richard Henderson <rth@redhat.com>
8942 PR optimization/5901
8943 * function.c (reposition_prologue_and_epilogue_notes): Position
8944 the markers after/before the last/first insn not deleted.
8946 2002-03-12 Richard Henderson <rth@redhat.com>
8948 PR optimization/5878
8949 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
8950 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
8951 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8953 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
8954 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
8955 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
8957 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
8958 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
8959 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
8960 also. Don't set it if not flag_pic.
8961 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
8962 to be INVALID_REGNUM when not used.
8964 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
8966 * expmed.c (store_bit_field): Reset alias set for memory.
8967 (extract_bit_field): Same.
8969 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8971 * c-common.c (c_tree_code_type, c_tree_code_length,
8972 c_tree_code_name, add_c_tree_codes): Delete.
8973 * c-common.h (add_c_tree_codes): Delete.
8974 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
8976 * c-objc-common.c (c_objc_common_init): Don't call
8977 add_c_tree_codes, instead set lang_unsafe_for_reeval.
8978 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
8979 objc_tree_code_name, add_objc_tree_codes): Delete.
8980 (objc_init): Don't call add_objc_tree_codes.
8981 * objc/objc-lang.c (tree_code_type, tree_code_length,
8982 tree_code_name): Define.
8983 * toplev.c (lang_independent_init): Don't set
8984 tree_code_length[IDENTIFIER_NODE].
8985 * tree.c (tree_code_type, tree_code_length, tree_code_name):
8986 Delete definitions, moved to language front-ends.
8987 * tree.def (IDENTIFIER_NODE): Hardwire the length.
8988 * tree.h (tree_code_type, tree_code_length, tree_code_name):
8990 (tree_code_length): Change type to unsigned char.
8992 2002-03-12 Richard Henderson <rth@redhat.com>
8994 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
8995 internal visibility change.
8997 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8999 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9000 validize_mem() instead of change_address to avoid clobbering
9003 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9005 * c-lex.h (position_after_whitespace): Remove.
9007 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9009 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9010 (lex_string): Use unsigned char pointers.
9012 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9014 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9015 is not a valid memory_operand.
9017 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9019 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9020 * config/xtensa/lib1funcs.asm: Fix copyright to include
9021 special case for libgcc files.
9022 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9023 (__divsi3): Likewise.
9024 (__umodsi3): Likewise.
9025 (__modsi3): Likewise.
9026 * config/xtensa/lib2funcs.S: Fix copyright to include
9027 special case for libgcc files.
9029 2002-03-12 Tom Rix <trix@redhat.com>
9031 * collect2.c (resolve_lib_name): Move outside of
9032 OBJECT_FORMAT_COFF ifdef.
9033 (ignore_library): Same.
9035 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9037 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9039 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9041 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9042 to function_section before writing out the constant pool.
9044 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9046 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9048 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9050 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9052 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9056 (cmpsi splitter): Likewise.
9057 (modsi3): Fail if <= 0.
9058 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9059 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9060 (reg_or_sub_cint64_operand): Likewise.
9061 (num_insns_constant_wide): Optimize sign extension.
9062 (rs6000_legitimize_address): Likewise.
9064 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9066 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9067 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9069 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9071 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9072 address calculation.
9074 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9076 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9077 scratch register to DImode / TImode.
9078 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9079 register used does not overlap the target.
9081 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9083 * Makefile.in (debug.o): Depend on debug.h.
9084 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9085 * debug.c (do_nothing_debug_hooks): Likewise.
9086 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9087 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9088 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9089 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9090 * dwarfout.c (dwarf_debug_hooks): Likewise.
9091 * integrate.c (output_inline_function): Likewise.
9092 * objc/objc-act.c (synth_module_prologue): Likewise.
9093 * sdbout.c (sdb_debug_hooks): Likewise.
9094 * toplev.c (debug_hooks): Likewise.
9095 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9097 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9099 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9100 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9101 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9102 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9103 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9104 * defaults.h (POINTER_SIZE): Define.
9105 * doc/tm.texi (POINTER_SIZE): Document default.
9107 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9109 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9111 2002-03-11 Richard Henderson <rth@redhat.com>
9113 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9114 if rebuild_label_notes_after_reload.
9116 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9118 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9119 emit pic register load if "internal" visibility.
9120 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9121 (cris_expand_builtin_va_arg): Do all computations on trees.
9123 2002-03-11 Richard Henderson <rth@redhat.com>
9125 * rtlanal.c: Include recog.h.
9126 (keep_with_call_p): Fix thinko.
9127 * Makefile.in (rtlanal.o): Update dependencies.
9129 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9131 * genflags.c (gen_insn): Use IS_VSPACE.
9132 * genoutput.c (output_insn_data): Likewise.
9133 (process_template): Likewise.
9135 2002-03-11 Richard Henderson <rth@redhat.com>
9137 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9139 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9141 * Makefile.in: Update.
9142 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9143 Update documentation.
9144 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9145 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9147 2002-03-11 Zack Weinberg <zack@codesourcery.com>
9149 * Makefile.in: Give texi2pod its input file as a command line
9150 argument, not on stdin.
9152 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
9153 Daniel Berlin <dan@dberlin.org>
9155 C++ alias analysis improvement.
9156 * alias.c (record_component_aliases): Record aliases for base
9159 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9161 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9163 2002-03-11 Douglas B Rupp <rupp@gnat.com>
9165 * toplev.c (vms_fopen): Remove, not needed.
9167 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9169 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9171 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9172 for FP, already done later.
9174 * toplev.c (debug_args): Add entry for VMS_DEBUG.
9175 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9177 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
9179 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9180 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9181 LARGEST_EXPONENT_IS_NORMAL for the given mode.
9182 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9183 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9184 (ediv, emul, eldexp, esqrt): Likewise.
9185 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9186 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9187 (saturate): New function.
9188 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9189 (make_nan): Use a saturation value instead of a NaN if
9190 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
9191 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9192 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
9193 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
9194 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9195 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9196 !ROUND_TOWARDS_ZERO.
9197 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9198 (ROUND_TOWARDS_ZERO): Document.
9200 2002-03-11 Andreas Jaeger <aj@suse.de>
9202 * cfg.c (dump_flow_info): Remove unused variable.
9204 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
9206 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9207 computations on trees.
9209 2002-03-10 Richard Henderson <rth@redhat.com>
9212 * reload.c (copy_replacements_1): New.
9213 (copy_replacements): Use it to recurse through the rtx.
9215 2002-03-10 Richard Henderson <rth@redhat.com>
9217 * loop.c (strength_reduce): Compute number of iterations as
9218 unsigned HOST_WIDE_INT.
9220 2002-03-10 Richard Henderson <rth@redhat.com>
9222 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9223 to move away from the end of the block.
9225 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
9227 PR preprocessor/5899
9228 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9230 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9232 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
9234 * attribs.c (decl_attributes): Fix signed/unsigned warning.
9236 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
9238 * config/mmix/mmix.c: Improve comments.
9239 (mmix_target_asm_function_prologue): Drop variable
9240 empty_stack_frame. Don't allocate unused slot above fp.
9241 (mmix_target_asm_function_epilogue): Mirror prologue changes.
9242 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
9243 brace in first column.
9244 (enum reg_class): Ditto.
9245 (FIRST_PARM_OFFSET): Now 0.
9246 (USER_LABEL_PREFIX): Remove #if 0:d definition.
9248 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9250 * combine.c (make_extraction): Fix error in last change.
9252 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9254 * c4x.c (c4x_fp_reglist): Const-ify.
9255 * cris.c (cris_print_operand): Likewise.
9256 * i386.c (ix86_va_arg): Likewise.
9257 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
9258 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
9259 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
9260 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
9261 * mcore.h (regno_reg_class): Likewise.
9262 * mips.c (gen_int_relational): Likewise.
9263 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
9264 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
9265 * pdp11.c (move_costs): Likewise.
9266 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
9267 * s390.c (s390_branch_condition_mnemonic, regclass_map):
9269 * s390.h (regclass_map): Likewise.
9270 * sh.c (shift_amounts): Likewise.
9271 * sh.md (rotlsi3): Likewise.
9273 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9275 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
9276 (ne0+5): Use new clobber to generate proper shift pattern.
9277 Patch by Michael Matz <matz@kde.org>.
9279 2002-03-09 Andreas Schwab <schwab@suse.de>
9281 * gcc.c (validate_all_switches): Also handle `%W{...}'.
9283 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9285 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
9287 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9290 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
9291 even for non-representable constants.
9293 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9295 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
9296 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
9297 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
9298 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
9299 (pop_function_context): Compute MAY_SHARE parameter for
9301 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
9302 (gen_mem_addressof): Call fixup_var_refs with new parm.
9304 * combine.c (make_extraction): Don't make extension of CONST_INT.
9306 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9308 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
9309 in o32 and o64 ABIs.
9310 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
9311 but getting fixed-size structs passed in registers regardless of
9312 padding in o32 and o64 ABIs.
9314 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
9315 offset before loading address of argument passed by transparent
9318 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9320 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
9322 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9324 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
9325 marker such that registers after it are saved.
9327 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9329 * sparc.c (arith_4096_operand): Fix error in last change.
9331 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9333 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
9336 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9338 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
9341 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9343 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
9345 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
9347 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
9348 removed; fix return value.
9349 * combine.c (combine_instructions): Dirtify blocks where we failed to
9350 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
9351 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
9353 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9355 * gcse.c (insert_insn_end_bb): Fix typo in last change.
9357 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
9359 * recog.c (peephole2_optimize): Re-distribute EH edges.
9361 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
9363 * expr.c (expand_expr): Use unsave lang hook.
9364 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
9365 (LANG_HOOKS_INITIALIZER): Update.
9366 * langhooks.h (struct lang_hooks): New hook unsave.
9367 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
9368 (unsave_expr_1): Remove unused lang_unsave_expr_now.
9369 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
9370 (unsave_expr_now): Remove.
9371 * tree.h (unsave_expr_now, lang_unsave,
9372 lang_unsave_expr_now): Remove.
9375 2002-03-08 Andreas Jaeger <aj@suse.de>
9377 * flow.c (propagate_block_delete_insn): Remove unused variable.
9379 2002-03-08 Kazu Hirata <kazu@hxi.com>
9381 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
9382 insn length for memory load/store.
9384 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
9386 * doc/install.texi (--with-libiconv-prefix): Document.
9388 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
9390 * doc/sourcebuild.texi: Fix typo.
9392 2002-03-08 Jakub Jelinek <jakub@redhat.com>
9395 * builtins.c (std_expand_builtin_va_arg): Do all computations on
9398 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9400 * rtl.c (copy_most_rtx): Move from here ...
9401 * emit-rtl.c (copy_most_rtx): ... to here.
9403 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9405 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
9406 SUBTARGET_CPP_SIZE_SPEC.
9407 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
9409 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
9411 2002-03-07 Matt Hiller <hiller@redhat.com>
9413 * gensupport.c (first_dir_md_include): Renamed from include;
9414 change all references.
9415 (last_dir_md_include): Renamed from last_include; change all
9417 (init_md_reader): Unconditionally initialize base_dir whether or
9418 not filename is a relative path.
9420 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
9422 * config/fp-bit.c (_unord_f2): Compile it in even if
9423 US_SOFTWARE_GOFAST is enabled.
9425 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
9426 NULL_RTX. Set all HFmode operations as NULL_RTX.
9427 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
9428 NULL_RTX, try reversing the comparison and the operands.
9430 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9432 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
9433 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
9436 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
9438 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
9440 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
9442 * basic-block.h (fixup_abnormal_edges): Declare.
9443 * reload1.c (fixup_abnormal_edges): New function.
9444 * reg-stack.c (convert_regs): Use it.
9446 * gcse.c (insert_insn_end_bb): Handle trapping insns.
9448 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
9450 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
9452 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
9453 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
9454 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
9455 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
9456 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
9457 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
9458 unless x and y could be infinite.
9459 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
9460 Check that the common type of both arguments is a real, even for
9461 targets without unordered comparisons. Allow an integer argument
9462 to be compared against a real.
9463 (expand_tree_builtin): Use expand_unordered_cmp.
9464 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
9465 * cse.c (fold_rtx): Likewise. Fix indentation.
9466 * fold-const.c (fold_real_zero_addition_p): New.
9467 (fold): Use it, and the new HONOR_... macros.
9468 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
9469 * jump.c (reversed_comparison_code_parts): After searching for
9470 the true comparison mode, use HONOR_NANS to decide whether it
9471 can be safely reversed.
9472 (reverse_condition_maybe_unordered): Remove IEEE check.
9473 * simplify-rtx.c (simplify_binary_operation): Use the new macros
9474 to decide which simplifications are valid. Allow the following
9475 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
9476 and (a - -b) to (a + b).
9477 (simplify_relational_operation): Use HONOR_NANS.
9478 * doc/tm.texi: Document the MODE_HAS_... macros.
9480 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9482 * combine.c (simplify_comparison): If simplifying a logical shift
9483 right and compare with constant, force the comparison to unsigned.
9485 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
9487 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
9489 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
9491 (alt_reg_names): Remove % for vrsave.
9493 2002-03-06 Richard Henderson <rth@redhat.com>
9495 PR optimization/5844
9496 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
9497 if used indicates we've already emitted one copy of an operand.
9498 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
9499 (gen_split): Supply a non-null used.
9501 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9503 * reload1.c (reload): Unshare all rtl after reload is done.
9505 * simplify-rtx.c (simplify_plus_minus): Do not abort,
9506 but simply fail if the expression is too complex to simplify.
9507 (simplify_gen_binary): Handle simplify_plus_minus failures.
9509 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
9511 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
9512 consistently call delete_trivially_dead_insns after CSE and GCSE;
9513 fix DFI_life dumping; do jump threading after liveness; do crossjumping
9514 after liveness2; update comment in last crossjumping.
9515 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
9517 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
9519 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
9520 after completing fast dead code elimination.
9522 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
9525 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
9527 * version.c: Fix misplaced leading blanks on first line.
9529 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
9531 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
9533 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
9535 * cfgcleanup.c (mentions_nonequal_regs): New function.
9536 (thread_jump): Use it.
9537 * toplev.c (rest_of_compilation): Run jump threading after
9540 2002-03-06 Jakub Jelinek <jakub@redhat.com>
9542 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
9545 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
9547 * predict.c (estimate_bb_frequencies): Do not reload the
9548 frequencies from notes.
9550 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
9552 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
9553 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
9555 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
9556 delete_noop_moves): Return indeger.
9557 * flow.c (ndead): New variable.
9558 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
9559 BB argument; update callers.
9560 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
9561 (life_analysis): Do not call purge_all_dead_edges.
9562 (update_life_info): Return number of deleted insns; print statistics.
9563 (update_life_info_in_dirty_blocks): likewise.
9564 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
9565 return number of insns deleted.
9567 * cse.c: Include timevar.h
9568 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
9569 iterate until stabilizes; print statistics; return number of killed
9571 * Makefile.in: (cse.o): Add timevar.h dependency
9572 * rtl.h (delete_trivially_dead_insns): New.
9573 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
9574 * toplev.c (rest_of_compilation): Update callers.
9576 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
9577 (try_optimize_cfg): Do not update liveness.
9578 (cleanup-cfg): Loop until try_optimize_cfg and dead code
9579 removal stabilizes; use delete_trivially_dead_insns.
9581 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
9583 2002-03-05 Zack Weinberg <zack@codesourcery.com>
9585 * cppmain.c (setup_callbacks): Disable #pragma and #ident
9586 callbacks when processing assembly language.
9588 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9590 * pa.h (ASM_FILE_END): Define.
9591 * som.h (ASM_FILE_END): Delete.
9593 * pa.c (function_arg): Don't pass floats in general registers in
9594 indirect calls if TARGET_ELF32.
9596 2002-03-05 Richard Henderson <rth@redhat.com>
9598 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
9600 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
9602 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
9604 2002-03-05 Jakub Jelinek <jakub@redhat.com>
9606 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
9607 -r command line. Don't hide any symbols if not building
9610 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
9612 * cfg.c (dump_flow_info): Warn about profile mismatches.
9613 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
9614 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
9616 2002-03-05 Jakub Jelinek <jakub@redhat.com>
9618 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
9619 wide volatile memory by parts.
9621 2002-03-05 Jakub Jelinek <jakub@redhat.com>
9623 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
9626 2002-03-05 Richard Henderson <rth@redhat.com>
9628 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
9630 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
9632 * toplev.c (documented_lang_options): Document more
9633 language-specific options.
9634 * doc/invoke.texi (Warning Options): Correct documentation for
9635 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
9636 * c-decl.c (c_decode_option): Use a table to handle warning options.
9638 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
9640 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
9641 parameter to mmix_encode_section_info.
9642 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
9643 relocatably. Always produce ELF, not mmo if linking relocatably.
9644 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
9645 first is non-zero, don't add symbol prefix.
9646 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
9647 prototype accordingly.
9649 2002-03-04 Krister Walfridsson <cato@df.lth.se>
9651 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
9653 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
9655 * configure.in: Increase required makeinfo version to 4.1.
9656 * configure: Regenerate.
9658 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
9660 * .cvsignore: Remove *.info* and genrtl*; these files are generated
9663 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
9665 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
9666 * doc/invoke.texi: Fix @math uses.
9668 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
9670 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
9673 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
9675 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
9676 (powerpc-*-eabisimaltivec*): Same.
9678 * config/rs6000/t-ppcendian: New.
9680 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9682 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
9683 nonimmediate_src_operand and nonimmediate_lsrc_operand to
9684 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
9686 2002-03-03 Richard Henderson <rth@redhat.com>
9688 * toplev.c (rest_of_decl_compilation): Revert last two changes.
9690 2002-03-03 Zack Weinberg <zack@codesourcery.com>
9692 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
9693 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
9694 tree.c, config/m68k/m68k.c:
9695 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
9696 REAL_ARITHMETIC blocks unconditional. Delete some further
9697 #ifdef blocks predicated on REAL_ARITHMETIC.
9698 * flags.h, toplev.c: Delete remaining references to
9701 * doc/invoke.texi: Remove documentation of -fpretend-float.
9702 * doc/tm.texi: Describe the various REAL_* macros as provided by
9703 real.h, not by the target configuration files.
9705 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
9706 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
9707 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9708 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
9709 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
9710 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
9711 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
9712 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
9713 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9714 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
9715 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9716 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
9717 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
9718 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
9719 config/xtensa/xtensa.h:
9720 Do not define, undefine, or mention in comments any of
9721 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
9722 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
9723 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
9724 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
9725 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
9726 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
9727 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
9728 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
9729 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
9731 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9733 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
9734 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
9735 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
9736 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
9737 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
9738 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
9740 * defaults.h (BITS_PER_WORD): Define.
9741 * doc/tm.texi (BITS_PER_WORD): Document default value.
9743 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
9744 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
9745 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
9747 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9749 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
9750 lieu of explicit sizeof/sizeof.
9751 * i386.c (override_options, ix86_init_mmx_sse_builtins,
9752 ix86_expand_builtin): Likewise.
9753 * mips.c (mips_add_gc_roots): Likewise.
9754 * mmix.c (mmix_output_condition): Likewise.
9755 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
9756 altivec_init_builtins): Likewise.
9757 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
9758 * cppexp.c (Nsuff, parse_number): Likewise.
9759 * cppinit.c (builtin_array_end): Likewise.
9760 * gcc.c (n_default_compilers, process_command): Likewise.
9761 * genpreds.c (output_predicate_decls): Likewise.
9762 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
9763 * lcm.c (N_ENTITIES): Likewise.
9764 * stor-layout.c (set_sizetype): Likewise.
9766 2002-03-03 Richard Henderson <rth@redhat.com>
9768 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
9769 for types or labels.
9771 2002-03-03 Richard Henderson <rth@redhat.com>
9773 * c-decl.c (start_decl): Initialized variables are not common.
9775 2002-03-02 Per Bothner <per@bothner.com>
9777 * gcc.c (option_map): Suport new --bootclasspath option.
9778 --CLASSPATH is now just an alias for --classpath.
9780 2002-03-02 Richard Henderson <rth@redhat.com>
9782 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
9783 load if "internal" visibility.
9784 * doc/extend.texi: Document visibility meanings.
9786 2002-03-02 Richard Henderson <rth@redhat.com>
9788 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
9789 to functions as well.
9791 2002-03-02 Richard Henderson <rth@redhat.com>
9793 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
9794 (handle_visibility_attribute): Don't call assemble_visibility.
9795 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
9796 without asmspec. Invoke assemble_alias when needed.
9797 * varasm.c (maybe_assemble_visibility): New.
9798 (assemble_start_function, assemble_variable, assemble_alias): Use it.
9800 2002-03-02 Richard Henderson <rth@redhat.com>
9802 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
9803 invoke ENCODE_SECTION_INFO with first call flag.
9805 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
9806 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
9807 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
9808 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
9809 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
9810 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
9811 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
9812 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
9813 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
9814 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
9815 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9816 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
9817 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
9818 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
9819 config/mcore/mcore-protos.h, config/mcore/mcore.c,
9820 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
9821 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
9822 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
9823 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
9824 config/sh/sh.h, config/sparc/sparc.h,
9825 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
9826 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
9827 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
9828 FIRST argument. As needed, examine it and do nothing.
9830 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
9831 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9832 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
9834 * config/arm/t-pe (pe.o): Add dependencies.
9836 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9838 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
9839 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
9840 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
9841 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
9842 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
9843 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
9844 * defaults.h (BITS_PER_UNIT): Define.
9845 * doc/tm.texi (BITS_PER_UNIT): Document default value.
9847 2002-03-02 Kazu Hirata <kazu@hxi.com>
9849 * config/h8300/h8300-protos.h: Add a prototype for
9850 compute_a_shift_length.
9851 * config/h8300/h8300.c (h8300_asm_insn_count): New.
9852 (compute_a_shift_length): Likewise.
9853 (h8300_adjust_insn_length): Do not adjust insn length of shift
9855 * config/h8300/h8300.md (anonymous shift patterns): Use
9856 compute_a_shift_length.
9858 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9860 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
9863 * emit-rtl.c (offset_address): Call update_temp_slot_address.
9865 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9867 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
9868 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
9869 * flags.h (flag_zero_initialized_in_bss): Declare.
9870 * toplev.c (flag_zero_initialized_in_bss): New flag.
9871 (lang_independent_options): Add flag_zero_initialized_in_bss.
9872 * tree.c (initializer_zerop): New function.
9873 * tree.h (initializer_zerop): Declare.
9874 * varasm.c (assemble_variable): If we can emit bss, put zero
9875 initializers in the bss section.
9877 2002-03-02 Alan Modra <amodra@bigpond.net.au>
9879 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
9880 like more than one symbol per .weak directive.
9882 2002-03-01 Richard Henderson <rth@redhat.com>
9884 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
9885 adjust argument_pointer by pretend_args_size.
9886 (ia64_va_start): Adjust va_start address by -pretend_args_size.
9888 2002-03-01 Kazu Hirata <kazu@hxi.com>
9890 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
9892 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
9894 * toplev.c (rest_of_compilation): Delete dead jumptables before
9896 * flow.c (delete_dead_jumptables): Make global.
9897 * rtl.h (delete_dead_jumptables): Declare.
9899 2002-03-01 David Edelsohn <edelsohn@gnu.org>
9901 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
9902 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
9903 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9905 2002-03-01 Kazu Hirata <kazu@hxi.com>
9907 * config/h8300/h8300-protos.h: Fix formatting.
9908 * config/h8300/h8300.c: Likewise.
9909 * config/h8300/h8300.h: Likewise.
9911 2002-03-01 Kazu Hirata <kazu@hxi.com>
9913 * config/h8300/h8300.c (print_operand): Support 16-bit
9915 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
9917 2002-02-28 Richard Henderson <rth@redhat.com>
9919 * expmed.c (store_bit_field): Prevent generation of CONCATs;
9920 pun complex values as integers; use gen_lowpart instead of
9922 (extract_bit_field): Likewise.
9924 2002-03-01 Alan Modra <amodra@bigpond.net.au>
9925 David Edelsohn <edelsohn@gnu.org>
9927 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
9928 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
9929 (SUPPORTS_WEAK): Likewise.
9930 * output.h (add_weak): Add tree param.
9931 * varasm.c (add_weak): Likewise. Save decl.
9932 (struct weak_syms): Add decl field.
9933 (mark_weak_decls): New function.
9934 (init_varasm_once): ggc_add_root mark_weak_decls.
9935 (assemble_start_function): Use ASM_WEAKEN_DECL.
9936 (assemble_variable): Likewise.
9937 (assemble_alias): Likewise.
9938 (declare_weak): Pass decl to add_weak.
9939 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
9940 (remove_from_pending_weak_list): Declare and define for
9942 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
9943 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
9944 * defaults.h (SUPPORTS_WEAK): Likewise.
9945 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9946 .weak for code sym. Do emit .size for descriptor sym.
9947 (ASM_DECLARE_FUNCTION_SIZE): Define.
9948 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
9949 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
9950 .lglobl unless TARGET_XCOFF. Formatting fixes.
9951 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9953 (HANDLE_PRAGMA_WEAK): Remove.
9954 (ASM_WEAKEN_LABEL): Remove.
9955 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
9957 2002-03-01 Jason Merrill <jason@redhat.com>
9959 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
9960 (TARGET_EXPR_CLEANUP): New macro.
9962 2002-02-28 Steve Ellcey <sje@cup.hp.com>
9964 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
9965 to take ptr_extend into account as third type of extension.
9966 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
9967 fields used by SUBREG_PROMOTED_UNSIGNED_P.
9968 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
9969 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
9970 * calls.c (precompute_arguments): Use new macro.
9971 (expand_call): Ditto.
9972 * combine.c (nonzero_bits): Ditto.
9973 (record_promoted_value): Ditto.
9974 * expr.c (store_expr): Ditto.
9975 (expand_expr): Ditto.
9976 * function.c (assign_parms): Ditto.
9978 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
9980 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
9981 override -shared and -shared-libgcc.
9983 2002-02-28 David O'Brien <obrien@FreeBSD.org>
9985 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
9987 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
9990 2002-02-28 Richard Henderson <rth@redhat.com>
9992 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
9993 4 cycle latency from MM producers.
9994 (ia64_internal_sched_reorder): Likewise with pipeline flush.
9996 2002-02-28 Jakub Jelinek <jakub@redhat.com>
9998 * mklibgcc.in: Don't use GNU make extension.
10000 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10002 * c-parse.in (STATIC): New terminal.
10003 (scspec): New non-terminal. Update productions accordingly.
10004 (program): Remove bogus ifc / end ifc.
10005 (array_declarator): Simplify production using STATIC.
10007 2002-02-28 Jim Meyering <meyering@lucent.com>
10009 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10010 \a still means TARGET_BELL.
10012 2002-02-28 Richard Henderson <rth@redhat.com>
10014 * haifa-sched.c (sched_emit_insn): New.
10015 (schedule_block): Use last_scheduled_insn to track last insn.
10016 * sched-int.h (sched_emit_insn): Prototype.
10017 * config/ia64/ia64.c (last_issued): Remove.
10018 (ia64_variable_issue): Don't set it.
10019 (nop_cycles_until): Use sched_emit_insn.
10021 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10023 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10024 extended constants.
10026 2002-02-28 Kazu Hirata <kazu@hxi.com>
10028 * config/h8300/h8300.c: Fix formatting.
10029 * config/h8300/h8300.h: Likewise.
10031 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10033 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10034 which may overwrite the high byte of the frame pointer.
10036 2002-02-28 Bo Thorsen <bo@suse.de>
10038 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10039 (STARTFILE_SPEC): Add 64 bit files.
10040 (ENDFILE_SPEC): Likewise.
10042 2002-02-28 Jason Merrill <jason@redhat.com>
10044 * c-decl.c (finish_function): Only warn about missing return
10045 statement with -Wreturn-type.
10047 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10049 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10051 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10052 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10054 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10056 * basic-block.h (BB_REACHABLE): Renumber.
10057 (BB_DIRTY, BB_NEW): New flags.
10058 (clear_bb_flags): Declare.
10059 (update_life_info_in_dirty_blocks): Declare.
10060 * cfg.c (clear_bb_flags): New function.
10061 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10062 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10063 reorder_insns, emit_insn_after): Mark block as dirty.
10064 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10065 (update_life_info_in_dirty_blocks): New function.
10066 * recog.c (apply_change_group): Dirtify block.
10068 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10070 * gcse.c (delete_null_pointer_checks): Likewise.
10072 * toplev.c (dump_file_index): Move cse2 after bp,
10074 (dump_file_info): Similary.
10075 (rest_of_compilation): Avoid most of CFG rebuilds;
10076 do first if converision after null pointer checks, do cse2
10077 after branch prediction; avoid full liveness rebuild after
10078 initializing subregs.
10079 * invoke.texi (-d options): Document -du, renumber.
10081 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10082 (notice_new_block): Do not set BB_UPDATE_LIFE.
10083 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10084 merge_blocks_move_successor_nojumps, merge_blocks,
10085 try_crossjump_to_edge): Likewise.
10086 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10087 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10088 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10089 (merge_of_block): Do not use life_data_ok.
10090 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10091 (if_convert): Use BB_DIRTY mechanizm to update life.
10092 * lcm.c (optimize_mode_switching): Update
10093 update_life_info_in_dirty_blocks
10095 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10097 * Makefile.in (integrate.o): Update.
10098 * c-decl.c (copy_lang_decl): Rename.
10099 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10100 * integrate.c: Include langhooks.h.
10101 (copy_decl_for_inlining): Update to use langhook.
10102 * langhooks-def.h (lhd_do_nothing_t,
10103 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10104 (LANG_HOOKS_INITIALIZER): Update.
10105 * langhooks.c (lhd_do_nothing_t): New.
10106 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10107 * tree.h (copy_lang_decl): Remove.
10109 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10111 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10113 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10114 POST_DEC, and POST_MODIFY.
10116 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10118 * c-typeck.c (digest_init): Remove unused parameter; all
10121 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10123 * expmed.c (expand_shift): Correctly test for low part of a
10126 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10128 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10129 insn UIDs with insn addresses.
10131 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10133 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10134 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10135 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10136 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10137 gcc.c, toplev.c: Delete code implementing -traditional mode.
10139 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10140 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10141 Document removal of -traditional mode for compilation, and
10142 remove documentation only relevant to that mode.
10144 * config/nextstep.h, config/ptx4.h, config/svr4.h,
10145 config/convex/convex.h, config/d30v/d30v.h,
10146 config/i386/dgux.h, config/i386/osf1elf.h,
10147 config/i386/osfelf.h, config/i386/osfrose.h,
10148 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10149 config/m68k/hp310.h, config/m88k/dgux.h,
10150 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10151 config/m88k/m88k.h, config/m88k/openbsd.h,
10152 config/mips/abi64.h, config/mips/osfrose.h,
10153 config/mips/svr4-5.h, config/mips/svr4-t.h,
10154 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10155 config/stormy16/stormy16.h: Remove all references to
10156 -traditional from target specs. Delete all mention of the
10157 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
10158 delete a couple of commented-out definitions of
10159 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10162 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10163 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10165 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10167 * mklibgcc.in: Don't use \n in a line subject to
10168 interpretation by echo.
10170 2002-02-27 Graham Stott <grahams@redhat.com>
10172 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10175 * loop.c (prescan_loop): Handle PARALLEL.
10177 * unroll.c (loop_iterations): Return 0 if the add_val for
10180 * final.c (output_operand_lossage): Constify PFX_STR.
10182 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10184 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
10186 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10187 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10189 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
10191 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10193 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
10195 * cpplex.c (_cpp_lex_token): Handle directives in macro
10197 * cpplib.c (_cpp_handle_directive): Save and restore state
10198 if parsing macro args when entering a directive.
10199 * cppmacro.c (collect_args): No need to handle directives
10200 in macro arguments.
10201 (enter_macro_context, replace_args): Use the original macro
10202 definition in case it was redefined whilst collecting arguments.
10204 * cpp.texi: Update.
10206 2002-02-26 David Edelsohn <edelsohn@gnu.org>
10208 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10209 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10210 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10212 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10213 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10214 (load_toc_v4_PIC_2): Same.
10216 2002-02-26 Alan Modra <amodra@bigpond.net.au>
10218 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10220 2002-02-26 Richard Henderson <rth@redhat.com>
10222 * config/alpha/alpha.md (ashldi_se): Re-enable.
10224 2002-02-26 Richard Henderson <rth@redhat.com>
10226 * config/alpha/alpha.c (alpha_encode_section_info): Examine
10227 MODULE_LOCAL_P; improve commentary.
10229 2002-02-26 Zack Weinberg <zack@codesourcery.com>
10231 * doc/cpp.texi: Clarify documentation of relationship between
10232 #line and #include.
10234 2002-02-26 Kazu Hirata <kazu@hxi.com>
10236 * config/h8300/h8300-protos.h: Update the prototype for
10237 compute_logical_op_length. Add the prototype for
10238 compute_logical_op_cc.
10239 * config/h8300/h8300.c (compute_logical_op_length): Figure out
10240 code from operands.
10241 (compute_logical_op_cc): New.
10242 * config/h8300/h8300.md: Combine all the logical op patterns
10243 in HImode and SImode. Use compute_logical_op_cc.
10245 2002-02-26 Kelley Cook <kelleycook@comcast.net>
10247 * config/i386/i386.c (print_operand): Don't append ATT-style
10248 length suffixs to x87 opcodes when in Intel mode.
10250 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
10252 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
10253 (init_emit_once): Update calls.
10254 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
10255 (init_syntax_once): Prototype.
10257 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
10259 * pa-linux.h (LIB_SPEC): Update definition.
10260 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10262 2002-02-26 Richard Henderson <rth@redhat.com>
10264 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
10265 if we emitted a stop bit.
10267 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10269 * configure.in (libgcc_visibility): Substitute.
10270 * configure: Rebuilt.
10271 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
10272 defined symbols .hidden.
10274 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10276 * attribs.c (c_common_attribute_table): Add visibility.
10277 (handle_visibility_attribute): New function.
10278 * varasm.c (assemble_visibility): New function.
10279 * output.h (assemble_visibility): Add prototype.
10280 * tree.h (MODULE_LOCAL_P): Define.
10281 * crtstuff.c (__dso_handle): Use visibility attribute.
10282 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
10283 for MODULE_LOCAL_P symbols too.
10284 * config/ia64/ia64.c (ia64_encode_section_info): Handle
10285 MODULE_LOCAL_P symbols the same way as local symbols.
10286 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
10287 into .sdata/.sbss by the user.
10288 * doc/extend.texi (Function Attributes): Document visibility
10291 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10294 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
10295 STRING_CST initializer spanning the whole variable without
10297 If expand_expr returned MEM, don't use it.
10299 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
10301 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
10302 generate a die for the lexical block.
10304 2002-02-26 Kazu Hirata <kazu@hxi.com>
10306 * config/h8300/h8300-protos.h: Add a prototype for
10307 compute_logical_op_length.
10308 * config/h8300/h8300.c (compute_logical_op_length): New.
10309 * config/h8300/h8300.md (anonymous logical patterns): Use
10310 compute_logical_op_length for length.
10312 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10314 * dwarf2out.c (modified_type_die): Do not call type_main_variant
10316 (gen_type_die): Same.
10318 * attribs.c (handle_vector_size_attribute): Set debug information.
10320 2002-02-26 Daniel Egger <degger@fhm.edu>
10322 * config/rs6000/rs6000.md: Swap define_insn attributes to
10323 fix incorrect generation of merge high instructions instead
10326 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10328 * c-typeck.c (really_start_incremental_init): Use
10329 bitsize_zero_node for vectors.
10331 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10333 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
10334 ("*set_vrsave_internal"): Same.
10336 2002-02-25 Richard Henderson <rth@redhat.com>
10338 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
10339 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
10341 2002-02-25 Jakub Jelinek <jakub@redhat.com>
10344 * config/i386/i386.c (ix86_return_pops_args): Only pop
10345 fake structure return argument if it was passed on the stack.
10347 2002-02-25 Jason Merrill <jason@redhat.com>
10349 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
10352 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10354 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
10355 link with shared_name only.
10356 * doc/invoke.texi (Link Options): Document new behavior.
10358 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10360 * c-typeck.c (push_init_level): Handle vectors.
10362 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10364 * config/sparc/sparc.c (const64_high_operand): Zero-extend
10365 operands of SPARC_SETHI_P.
10366 (input_operand): Likewise.
10367 (sparc_emit_set_const32): Likewise.
10368 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
10369 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
10370 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
10371 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
10372 (movdi_insn_sp64_vis): Likewise.
10373 (movdi split, movdf split): Use SETHI32.
10374 * doc/md.texi: Document SPARC constraints L, M and N.
10376 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10378 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
10379 ("*set_vrsave_internal"): use mfspr for Darwin.
10381 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
10382 gen_get_vrsave_internal.
10384 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10386 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
10388 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
10390 * cpplex.c (cpp_interpret_charconst): Get signedness or
10391 otherwise of wide character constants correct.
10392 * cppexp.c (lex): Get signedness of wide charconsts correct.
10394 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10396 * optabs.c (widen_operand): Only call convert_modes for
10397 promoted SUBREG if signedness matches.
10398 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
10400 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10402 * cpplib.c (glue_header_name): Use local buffer to build up
10405 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10407 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
10409 2002-02-23 Kazu Hirata <kazu@hxi.com>
10411 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
10412 H8/300[HS] separately.
10413 * config/h8300/h8300.md: Remove the early clobber constraint
10414 from bit field patterns.
10416 2002-02-23 Kazu Hirata <kazu@hxi.com>
10418 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
10420 (mulhisi3): Likewise.
10421 (umulqisi3): Likewise.
10422 (umulhisi3): Likewise.
10424 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10426 * cppinit.c (output_deps): Correct test for stdout output.
10427 (init_dependency_output): Cure warning.
10429 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10431 * expr.c (store_expr): When converting expression to promoted
10432 equivalent type, allow using SUBREG_REG of TARGET as the target
10433 of the expansion of EXP.
10434 * loop.c (basic_induction_var, case SUBREG): Always look inside.
10435 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
10436 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
10437 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
10438 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
10440 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
10442 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
10443 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
10444 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
10446 2002-02-23 Jakub Jelinek <jakub@redhat.com>
10448 PR optimization/5747
10449 * loop.c (scan_loop): Update reg info if move_movables created new
10452 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10454 * gcc.c (init_gcc_spec): Revert last change.
10456 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10458 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
10459 gpc_reg_operand constraint.
10461 2002-02-23 Alan Modra <amodra@bigpond.net.au>
10463 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
10464 Simplify comparison of `low'.
10465 (add_operand): Fix formatting.
10466 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
10467 (mask_operand): Disallow mask to wrap in 64-bit mode.
10468 (rs6000_stack_info): Remove redundant test setting push_p.
10469 (output_toc): Fix formatting.
10470 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
10471 cc_reg_not_cr0_operand constraint.
10472 (booldi3, boolcdi3 splitters): Same.
10474 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
10476 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
10478 2002-02-22 David Edelsohn <edelsohn@gnu.org>
10480 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
10481 gcc invoked with -shared-libgcc.
10483 2002-02-22 Jakub Jelinek <jakub@redhat.com>
10486 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
10487 decl if any of elements was TREE_USED.
10489 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
10491 * config/sparc/sol2.h: Don't include sys/mman.h.
10492 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
10493 (arith_4096_operand): Don't throw high bits away.
10494 (const64_operand): Take sign extension of CONST_INTs into account.
10495 (const64_high_operand, sparc_emit_set_const32): Likewise.
10496 (GEN_HIGHINT64): Likewise.
10497 (sparc_emit_set_const64_quick1): Likewise.
10498 (const64_is_2insns): Likewise.
10499 (print_operand): Use trunc_int_for_mode for sign extension.
10500 * config/sparc/sparc.h (SMALL_INT32): Likewise.
10501 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
10502 chars. Assume CONST_INT is already properly sign-extended.
10503 (movdi split): Sign-extend each SImode part.
10504 (andsi3 split): Don't mask high bits off, so that result
10505 remains properly sign-extend.
10506 (iorsi3 split): Likewise.
10507 (xorsi3 split): Likewise.
10509 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
10511 * fold-const.c (fold): Fix typo in comments.
10513 2002-02-21 Diego Novillo <dnovillo@redhat.com>
10515 * Makefile.in (langhooks.o): Update dependencies.
10517 2002-02-21 Diego Novillo <dnovillo@redhat.com>
10519 * langhooks.c: Include flags.h.
10521 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
10523 * testsuite/gcc.dg/attr-alwaysinline.c: New.
10525 * c-common.c (c_common_post_options): Set inline trees by
10528 * doc/extend.texi (Function Attributes): Document always_inline
10530 Update documentation about inlining when not optimizing.
10532 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
10534 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
10535 unless DECL_ALWAYS_INLINE.
10537 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
10538 unless DECL_ALWAYS_INLINE.
10539 (c_disregard_inline_limits): Disregard if always_inline set.
10541 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
10542 Disregard if always_inline set.
10543 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
10544 unless DECL_ALWAYS_INLINE.
10546 * attribs.c (handle_always_inline_attribute): New.
10547 (c_common_attribute_table): Add always_inline.
10549 * config/rs6000/altivec.h: Add prototypes for builtins
10550 requiring the always_inline attribute.
10552 2002-02-21 Eric Christopher <echristo@redhat.com>
10554 * expmed.c (store_bit_field): Try to simplify the subreg
10555 before generating a new one when when the mode size of
10556 value is less than maxmode.
10558 2002-02-21 Richard Henderson <rth@redhat.com>
10560 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
10561 than gen_rtx_PLUS to form the sum.
10562 * explow.c (force_reg): Rearrange to not allocate new pseudo
10563 when force_operand returns a register.
10564 * expr.c (expand_assignment): Allow offset_rtx expansion to
10565 return a sum. Do not force addresses into registers.
10566 (expand_expr): Likewise.
10567 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
10568 to canonicalize arithmetic that didn't simpify.
10569 (simplify_plus_minus): New argument force; update
10570 all callers. Don't split CONST unless we can do something with it,
10571 and wouldn't lose the constness of the operands.
10573 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
10574 that we generated earlier.
10576 2002-02-21 Tom Tromey <tromey@redhat.com>
10578 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10579 (output_line_info): Use constant `1', with a long explanatory
10581 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
10583 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
10585 * jump.c (redirect_jump): If old label has no UID, don't try to
10588 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
10590 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
10591 If input is constant, do shifts at compile time.
10593 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
10595 * doc/extend.texi: Fix some more overfull hboxes.
10597 2002-02-21 Jakub Jelinek <jakub@redhat.com>
10599 PR optimization/4994
10600 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
10603 2002-02-21 Jakub Jelinek <jakub@redhat.com>
10606 * expr.h (expand_and): Add mode argument.
10607 * expmed.c (expand_and): Add mode argument.
10608 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
10609 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
10610 * except.c (expand_builtin_extract_return_addr): Likewise.
10611 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10612 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10613 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
10614 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
10615 * config/c4x/c4x.md: Use GEN_INT (x) instead of
10616 gen_rtx (CONST_INT, VOIDmode, x).
10618 2002-02-21 Jakub Jelinek <jakub@redhat.com>
10621 * stmt.c (warn_if_unused_value): Move side effects test once more.
10623 2002-02-20 Torbjorn Granlund <tege@swox.com>
10625 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
10626 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
10628 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
10630 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
10631 SUBREG or ZERO_EXTEND.
10633 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
10635 * sh.h (current_function_anonymous_args): Remove.
10636 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
10637 of current_function_varargs and current_function_stdarg is set.
10638 * sh.c (sh_expand_prologue): Check current_function_varargs /
10639 current_function_stdarg / TARGET_SH5 instead of
10640 current_function_anonymous_args.
10642 * sh64.h (TARGET_VERSION): Define.
10644 2002-02-20 David Edelsohn <edelsohn@gnu.org>
10646 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
10647 VRSAVE_REGNO on TARGET_ALTIVEC.
10649 2002-02-20 Alan Modra <amodra@bigpond.net.au>
10651 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
10652 bits of SImode const_int.
10653 (includes_rshift_p): Likewise.
10654 (print_operand): Call mask_operand and mask64_operand with correct
10656 (rs6000_output_function_epilogue): Pad traceback table to word.
10657 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
10658 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
10659 mask64_operand with correct mode.
10660 (FUNCTION_ARG_REGNO_P): Correct parentheses.
10662 2002-02-20 Jakub Jelinek <jakub@redhat.com>
10665 * varasm.c (get_pool_constant_mark): New.
10666 * rtl.h (get_pool_constant_mark): Add prototype.
10667 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
10668 be represented if it has not been output.
10670 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
10672 * combine.c (do_SUBST): Sanity check substitutions of
10673 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
10674 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
10675 CONST_INT into its operand.
10676 (known_cond): Likewise, for ZERO_EXTEND.
10677 * simplify-rtx.c (simplify_unary_operation): Fix condition to
10678 allow for simplification of wide modes. Reject CONST_INTs in
10679 ZERO_EXTEND when their actual mode is not given.
10681 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
10683 * c-decl.c (pushdecl): If no global declaration is found for an
10684 extern declaration in block scope, try a limbo one.
10686 2002-02-20 Jakub Jelinek <jakub@redhat.com>
10689 * c-common.c (pointer_int_sum): Moved from...
10690 * c-typeck.c (pointer_int_sum): ...here.
10691 * c-common.h (pointer_int_sum): Add prototype.
10693 2002-02-20 Jakub Jelinek <jakub@redhat.com>
10696 * c-decl.c (duplicate_decls): Return 0 if issued error about
10699 2002-02-20 Roger Sayle <roger@eyesopen.com>
10700 Jakub Jelinek <jakub@redhat.com>
10703 * tree.c (host_integerp): Ensure that the constant integer is
10704 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
10705 when pos is zero or non-zero respectively. Clarify comment.
10706 * c-format.c (check_format_info_recurse): Fix host_integerp
10707 usage; the pos argument should be zero when assigning to a
10708 signed HOST_WIDE_INT.
10710 2002-02-20 Richard Henderson <rth@redhat.com>
10712 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
10713 of the operand, rather than assuming TImode.
10714 (ix86_expand_binop_builtin): Cope with commutative patterns
10715 using nonimmediate_operand for both operands.
10716 (ix86_expand_timode_binop_builtin): Likewise.
10717 (ix86_expand_store_builtin): Validate operand 1.
10718 (ix86_expand_unop1_builtin): Likewise.
10720 2002-02-20 Philip Blundell <philb@gnu.org>
10723 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
10725 2002-02-20 Richard Henderson <rth@redhat.com>
10728 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
10730 2002-02-20 Tom Tromey <tromey@redhat.com>
10732 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10733 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10734 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10735 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10736 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
10739 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
10741 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
10742 for (const_int 0) in X not just INTVAL.
10744 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
10746 * doc/extend.texi: Avoid or reduce overfull hboxes.
10748 2002-02-20 Diego Novillo <dnovillo@redhat.com>
10750 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
10751 operations if the field does not start at a mode boundary.
10753 2001-02-20 Joel Sherrill <joel@OARcorp.com>
10755 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
10756 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
10757 Also done for -Acpu and -Amachine.
10759 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
10761 * cppinit.c (init_dependency_output): Take deps output file
10762 from -o if none given with -MF. Suppress normal output.
10763 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
10764 * doc/cpp.texi, doc/invoke.texi: Update.
10766 2002-02-19 Zack Weinberg <zack@codesourcery.com>
10768 * toplev.c (output_quoted_string): Write unprintable
10769 characters with octal escapes.
10771 2002-02-19 David Edelsohn <edelsohn@gnu.org>
10773 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
10774 really_call_used[VRSAVE_REGNO] if not Altivec.
10776 2002-02-19 Alan Modra <amodra@bigpond.net.au>
10778 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
10780 (constant_pool_expr_1): Fix formatting.
10781 (rs6000_legitimize_reload_address): Likewise.
10783 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10785 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
10786 now that we have one.
10788 2002-02-19 Zack Weinberg <zack@codesourcery.com>
10790 * tree.h (struct tree_common): Remove aux. Add unused_0 at
10791 end of first block of bitfields (which was only seven bits);
10792 rename dummy to unused_1; remove comment which is no longer true.
10794 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
10796 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
10798 2002-02-19 Philip Blundell <pb@nexus.co.uk>
10801 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
10805 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
10806 arm_is_longcall_p rather than inspecting call-type cookie
10808 (call_value_insn) [TARGET_THUMB]: Likewise.
10810 2002-02-19 Graham Stott <grahams@redhat.com>
10812 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
10814 2002-02-19 David Edelsohn <edelsohn@gnu.org>
10816 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
10817 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
10818 (FP_SAVE_INLINE): Delete.
10820 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
10821 * config/rs6000/eabi.asm: Remove ABI save restore routines.
10822 * config/rs6000/t-ppccomm: Build crtsavres.o.
10823 * config/rs6000/crtsavres.asm: New file.
10825 2002-02-19 Philip Blundell <philb@gnu.org>
10827 * config/arm/arm.c (use_return_insn): Don't reject interrupt
10829 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
10830 (output_return_instruction): Allow interrupt functions to return with
10831 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
10832 (arm_expand_prologue): Subtract 4 before stacking LR in an
10833 interrupt function.
10835 2002-02-19 Philip Blundell <pb@nexus.co.uk>
10837 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
10838 decl, not just FUNCTION_DECL.
10839 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
10840 (arm_assemble_integer): Likewise.
10841 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
10844 2002-02-19 matthew green <mrg@eterna.com.au>
10846 * config.gcc (sparc-*-netbsdelf*): Enable target.
10847 (sparc64-*-netbsd*): New target.
10848 * config/sparc/netbsd-elf.h: New file.
10849 * config/sparc/t-netbsd64: New file.
10851 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
10853 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
10855 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
10857 * doc/invoke.texi: explicitly list the style guidelines that
10858 -Weffc++ checks for.
10860 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
10862 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
10864 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
10867 * gcc.c (cpp_unique_options): Treat -o as indicating object file
10868 only if not -E. If -E, pass -o through to the preprocessor.
10870 2002-02-19 Kazu Hirata <kazu@hxi.com>
10872 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
10873 register number with an appropriate macro.
10875 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10877 * doc/rtl.texi (Constants): Close @code tag.
10879 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
10881 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
10882 ("mmx_uavgv4hi3"): Same.
10883 ("pmulhrwv4hi3"): Same.
10885 * tree-inline.c (walk_tree): Handle vectors.
10887 * c-common.c (constant_expression_warning): Handle vectors.
10888 (overflow_warning): Same.
10890 * sched-deps.c (sched_analyze_2): Handle vectors.
10892 * rtlanal.c (rtx_unstable_p): Handle vectors.
10893 (rtx_varies_p): Same.
10894 (count_occurrences): Same.
10895 (regs_set_between_p): Same.
10896 (modified_between_p): Same.
10897 (modified_in_p): Same.
10898 (volatile_insn_p): Same.
10899 (volatile_refs_p): Same.
10900 (side_effects_p): Same.
10901 (may_trap_p): Same.
10902 (inequality_comparisons_p): Same.
10903 (replace_regs): Same.
10904 (computed_jump_p_1): Same.
10906 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
10908 (inner_mode_array): New.
10909 (copy_rtx): Handle vectors.
10910 (copy_most_rtx): Same.
10911 (rtx_equal_p): Same.
10912 (get_mode_alignment): Adjust for vectors.
10914 * resource.c (mark_referenced_resources): Handle vectors.
10915 (mark_set_resources): Same.
10917 * reload1.c (eliminate_regs): Handle vectors.
10918 (elimination_effects): Same.
10919 (scan_paradoxical_subregs): Same.
10921 * reload.c (subst_reg_equivs): Handle vectors.
10923 * regrename.c (scan_rtx): Handle vectors.
10925 * regclass.c (reg_scan_mark_refs): Handle vectors.
10927 * recog.c (find_single_use_1): Handle vectors.
10929 * local-alloc.c (equiv_init_varies_p): Handle vectors.
10930 (contains_replace_regs): Same.
10931 (memref_referenced_p): Same.
10933 * integrate.c (copy_rtx_and_substitute): Handle vectors.
10934 (subst_constants): Same.
10936 * genattrtab.c (attr_copy_rtx): Handle vectors.
10937 (encode_units_mask): Same.
10938 (clear_struct_flag): Same.
10939 (count_sub_rtxs): Same.
10941 * gcse.c (want_to_gcse_p): Handle vectors.
10942 (oprs_unchanged_p): Same.
10943 (hash_expr_1): Same.
10944 (oprs_not_set_p): Same.
10945 (expr_killed_p): Same.
10946 (compute_transp): Same.
10947 (store_ops_ok): Same.
10949 * function.c (purge_addressof_1): Do not allow paradoxical subregs
10951 (fixup_var_refs_1): Same.
10952 (instantiate_virtual_regs_1): Same.
10954 * fold-const.c (operand_equal_p): Handle vectors.
10956 (rtl_expr_nonnegative_p): Same.
10958 * flow.c (mark_used_regs): Handle vectors.
10960 * df.c (df_uses_record): Handle vectors.
10962 * cselib.c (cselib_subst_to_values): Handle vectors.
10963 (cselib_mem_conflict_p): Same.
10966 * cse.c (canon_reg): Handle vectors.
10968 (cse_process_notes): Same.
10969 (count_reg_usage): Same.
10970 (canon_hash): Same.
10972 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
10974 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
10976 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
10977 (gen_rtx): Handle CONST_VECTOR.
10978 (gen_const_vector_0): New.
10979 (copy_rtx_if_shared): CONST_VECTORs can be shared.
10980 (reset_used_flags): Same.
10981 (copy_insn_1): Same.
10982 (initializer_constant_valid_p): Handle VECTOR_CST.
10984 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
10986 * doc/rtl.texi (Constants): Document const_vector.
10987 (CONST0_RTX): Update for vectors.
10988 (RTL sharing): Same.
10990 * print-tree.c (print_node): Add case for VECTOR_CST.
10992 * tree.h (TREE_VECTOR_CST_ELTS): New.
10993 (struct tree_vector): New.
10994 (union tree_node): Add vector node.
10995 (build_vector): Add prototype.
10997 * tree.def (VECTOR_CST): New.
10999 * tree.c (build_vector): New.
11001 * expmed.c (make_tree): Handle CONST_VECTOR.
11003 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11004 (CONST_VECTOR_ELT): New.
11005 (CONST_VECTOR_NUNITS): New.
11007 * machmode.h (GET_MODE_INNER): New.
11008 (DEF_MACHMODE): Accept 8th arg.
11010 * machmode.def: Add 8th argument for vector inner mode.
11011 Add inner vector modes for vectors.
11013 * rtl.def (VEC_CONST): Remove.
11014 (CONST_VECTOR): New.
11016 * expr.c (clear_storage): Allow vectors.
11017 (is_zeros_p): Handle VECTOR_CST.
11019 * varasm.c (output_constant_pool): Handle vectors.
11020 (rtx_const): Add veclo and vechi fields.
11021 (kind): Add RTX_VECTOR.
11022 (decode_rtx_const): Add case for vector.
11024 * config/rs6000/rs6000-protos.h: Add zero_constant.
11026 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11027 constants. Force easy vector constants into memory.
11028 (easy_vector_constant): New.
11029 (emit_easy_vector_constant): New.
11030 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11033 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11035 ("altivec_lvxl"): Same.
11036 (altivec_lvebx): Same.
11037 (altivec_lvehx): Same.
11038 (altivec_lvewx): Same.
11039 ("*movv4si_const0"): New.
11040 ("*movv4sf_const0"): New.
11041 ("*movv8hi_const0"): New.
11042 ("*movv16qi_const0"): New.
11044 2002-02-18 Kazu Hirata <kazu@hxi.com>
11046 * config/h8300/h8300.c (notice_update_cc): Use
11049 2002-02-18 Kazu Hirata <kazu@hxi.com>
11051 * config/h8300/h8300.md (divmod patterns): Change the
11052 constraints for operands[1] to register_operand.
11054 2002-02-18 Kazu Hirata <kazu@hxi.com>
11056 * config/h8300/h8300-protos.h: Remove the prototype for
11058 * config/h8300/h8300.c (p_operand): Remove.
11059 * config/h8300/h8300.md: Replace p_operand with
11062 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11064 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11066 (output_return_instruction): Allow use of LDR to unstack
11067 return addresss even for interrupt handlers or when
11068 interworking. If compiling for ARMv5, use interworking-safe
11069 return instructions by default. Remove duplicated code and
11070 lengthy "strcat" sequences.
11072 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11074 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11075 (LINK_EH_SPEC): Define.
11076 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11078 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11080 * config/s390/s390.c (s390_emit_prologue): Do not set the
11081 frame_related flag for call-clobbered registers.
11083 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11085 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11086 (construct_container): Fix handling of SSE operands.
11087 (ix86_expand_builtin): Fix handling of 64bit pointers.
11088 (mmx_maskmovq_rex): New pattern.
11090 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11092 * regrename.c (kill_set_value): Handle subregs properly.
11094 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11096 * objc/objc-act.c (handle_impent): Remove leading '*'
11097 from objc_class_name.
11099 2002-02-17 Richard Henderson <rth@redhat.com>
11101 * config/alpha/alpha.c (some_small_symbolic_operand,
11102 some_small_symbolic_operand_1, split_small_symbolic_operand,
11103 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11104 Handle small SYMBOL_REFs anywhere, not just inside memories.
11105 * config/alpha/alpha-protos.h: Update.
11106 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11107 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11109 2002-02-17 Roland McGrath <roland@frob.com>
11111 * config.gcc (powerpc-*-gnu-gnualtivec*,
11112 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11113 * config/rs6000/gnu.h: New file.
11114 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11115 Grok "gnu" in rs6000_abi_name.
11116 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11117 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11118 Grok -mcall-gnu analogous to -mcall-linux et al.
11119 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11120 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11121 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11123 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11126 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11129 2002-02-17 Philipp Thomas <pthomas@suse.de>
11131 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11132 ENDFILE_SPEC before (re)defining them.
11134 2002-02-17 Kazu Hirata <kazu@hxi.com>
11136 * config/h8300/h8300.c: Fix formatting.
11137 * config/h8300/h8300.h: Likewise.
11139 2002-02-17 Philipp Thomas <pthomas@suse.de>
11141 * doc/tm.texi: Explain why empty strings should not be
11142 marked for translation.
11144 2002-02-17 Philipp Thomas <pthomas@suse.de>
11146 * final.c (output_operand_lossage): Changed to accept
11147 printf style arguments. Change calls where necessary.
11148 * output.h (output_operand_lossage): Change declaration
11149 accordingly. Update copyright.
11150 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11151 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11152 Update copyright date where necessary.
11154 * config/i386/i386.c (print_operand): Likewise. Remove use of
11157 * config/cris/cris.c (cris_operand_lossage): Likewise.
11158 Rename parameter so that exgettext recognizes it as
11159 translatable message.
11160 (LOSE_AND_RETURN): Rename parameter to msgid.
11162 2002-02-17 Kazu Hirata <kazu@hxi.com>
11164 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11165 hard coded register number with an appropriate macro.
11166 (HARD_REGNO_MODE_OK): Likewise.
11167 (ARG_POINTER_REGNUM): Likewise.
11168 (STATIC_CHAIN_REGNUM): Likewise.
11169 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11170 * config/h8300/h8300.md (define_constants): Define more
11173 2002-02-17 Philipp Thomas <pthomas@suse.de>
11175 * config/i386/i386.h: Don't mark empty strings for translation.
11177 2002-02-16 H.J. Lu <hjl@gnu.org>
11179 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11181 2002-02-16 Zack Weinberg <zack@codesourcery.com>
11183 * cppinit.c (merge_include_chains): Check for brack being
11184 NULL before attempting to merge it with qtail.
11186 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11188 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11191 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11193 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11195 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11197 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11198 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11199 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11201 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11203 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11204 now only if !TARGET_FIX.
11205 (*movsi_nt_vms_fix): New pattern.
11207 2002-02-16 Douglas B Rupp <rupp@gnat.com>
11209 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11210 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11211 (alpha_sa_mask, alpha_sa_size): Reflect above change.
11212 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11213 (alpha_start_function, alpha_expand_epilogue): Likewise.
11214 (unicosmk_gen_dsib): Likewise.
11216 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11218 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11220 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
11222 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11223 check_and_change_labels, s390_final_chunkify): Delete.
11224 (s390_split_branches, s390_chunkify_pool): New functions.
11225 (s390_function_prologue): Call them.
11227 * config/s390/s390.h (S390_REL_MAX): Delete.
11228 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11230 * config/s390/s390.md (cjump, icjump, jump): Fix length
11231 attribute calculation.
11234 2002-02-15 David Edelsohn <edelsohn@gnu.org>
11236 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
11237 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
11239 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11241 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
11242 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
11243 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
11245 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11247 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
11249 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11251 * reload.c (find_dummy_reload): Check that an output register
11252 is valid for its mode.
11254 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
11256 * combine.c (known_cond): After replacing the REG of a SUBREG, try
11259 * function.c (assign_parms): Demote promoted argument passed by
11260 transparent reference.
11262 2001-02-14 Joel Sherrill <joel@OARcorp.com>
11264 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
11265 -Acpu() and -Amachine() to eliminate warnings.
11267 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
11269 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
11271 2002-02-14 Kazu Hirata <kazu@hxi.com>
11273 * config/h8300/h8300-protos.h: Update the prototype for
11275 * config/h8300/h8300.c (const_costs): Treat SET as a little
11276 more expensive operation.
11277 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
11278 reference to const_costs.
11280 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
11282 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
11284 2002-02-14 Jakub Jelinek <jakub@redhat.com>
11287 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
11288 use arguments from newtype.
11290 2002-02-13 Eric Christopher <echristo@redhat.com>
11292 * config/mips/mips.c (override_options): Add check for march/mipsX
11293 on the same command line. Fix error message in cpu processing.
11294 Remove architecture and ISA checks.
11296 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11298 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
11300 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
11302 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11304 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
11306 ("*movv8hi_internal1"): Same.
11307 ("*movv16qi_internal1"): Same.
11308 ("*movv4sf_internal1"): Same.
11310 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
11311 not push_reload for altivec modes.
11313 2002-02-13 Joel Sherrill <joel@OARcorp.com>
11315 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
11316 all RTEMS targets including removal of #includes from config/*/rtems*.h
11317 file and adding them to tm_file setting. Added xm_defines=POSIX to
11319 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
11320 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
11321 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
11322 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
11323 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
11324 config/m68k/rtemself.h: Ditto.
11325 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
11326 config/mips/rtems64.h: Ditto.
11327 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
11328 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
11330 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
11331 config/sparc/rtemself.h: Ditto.
11332 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
11333 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
11334 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
11336 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
11337 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
11338 target made more similar to i386-elf.
11339 * config/i386/t-rtems-i386: Added soft float support and multilibs.
11340 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
11341 be similar to config/m68k/t-m68kelf.
11342 * gthr-rtems.h: Encapsulate with extern "C" for C++.
11344 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
11346 * regmove.c (kill_value): Handle subregs.
11348 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
11350 * i386.md (mul patterns): Allow memory operand to be first;
11351 add expanders where needed; fix constraints.
11352 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
11353 Allow memory operand to be the first.
11355 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
11358 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11361 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
11364 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11366 PR optimization/5547:
11367 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
11368 all valid IA-32 address modes involving non-scaled %ebx and
11369 GOT/GOTOFF as displacement.
11371 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
11373 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
11374 after emitting ltorg insns.
11376 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
11377 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
11378 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
11379 *abssf2): Fix "op_type" attribute.
11381 2002-02-13 Douglas B Rupp <rupp@gnat.com>
11383 * mkconfig.sh: Avoid using a subshell redirect.
11384 ($output.T): Change to $(output)T.
11385 (ENABLE_NLS): Remove unneeded undef.
11387 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
11388 * config/alpha/x-vms (libsubdir): Define.
11390 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
11391 register frame procedures. Optimize retrieving context.
11393 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
11394 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
11395 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
11397 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11399 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
11400 Make same change as for find_base_value.
11402 2002-02-13 Kazu Hirata <kazu@hxi.com>
11404 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
11405 of QImode and SImode.
11407 2002-02-13 Kazu Hirata <kazu@hxi.com>
11409 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
11410 length computation of movsi.
11411 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
11413 2002-02-13 Kazu Hirata <kazu@hxi.com>
11415 * config/h8300/h8300.md (subqi3): Tighten the predicate for
11416 operands[2] to register_operand.
11418 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
11420 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
11422 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
11424 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
11425 for altivec_lvx* and altivec_stvx*.
11426 ("*movv4si_internal"): Add constraint for loading from GPRs.
11427 ("*movv8hi_internal1"): Same.
11428 ("*movv16qi_internal1"): Same.
11429 ("*movv4sf_internal1"): Same.
11431 * config/rs6000/rs6000.c (altivec_register_operand): New.
11433 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
11434 altivec_register_operand.
11436 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
11438 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
11441 2002-02-13 Stan Shebs <shebs@apple.com>
11443 * c-typeck.c (digest_init): Handle vectors.
11444 (really_start_incremental_init): Same.
11445 (pop_init_level): Same.
11446 (process_init_element): Same.
11448 * varasm.c (output_constant): Same.
11450 * expr.c (clear_storage): Same.
11451 (store_constructor): Same.
11453 2002-02-12 Eric Christopher <echristo@redhat.com>
11455 * explow.c (hard_function_value): Add comment explaining
11456 signed/unsigned comparison.
11458 2002-02-12 Jakub Jelinek <jakub@redhat.com>
11460 * jump.c (never_reached_warning): Add finish argument.
11461 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
11462 real insn after end.
11463 * rtl.h (never_reached_warning): Adjust prototype.
11464 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
11465 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
11466 never_reached_warning.
11468 2002-02-12 Graham Stott <grahams@redhat.com>
11470 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
11472 2002-02-12 Kazu Hirata <kazu@hxi.com>
11474 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
11475 logical shifts on H8/300.
11476 (shift_alg_si): Improve several shifts on H8/300.
11477 (get_shift_alg): Likewise.
11479 2002-02-12 Graham Stott <grahams@redhat.com>
11481 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
11483 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11485 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
11486 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
11488 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
11490 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
11491 non-CONST_INT through default_assemble_integer.
11492 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
11493 <case 8>: Abort for CONST_DOUBLE.
11495 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11497 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
11499 * config/pa/pa-linux.h (LIB_SPEC): Delete.
11500 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11502 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
11504 * config/stormy16/stormy16.md (zero_extendqihi2): New.
11506 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
11508 * regrename.c (regrename_optimize): Don't accept a
11509 part-clobbered register if the replaced register is not part
11512 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
11513 take padding into account when computing the argument value.
11515 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
11517 * combine.c (try_combine): Apply substitutions in
11518 CALL_INSN_FUNCTION_USAGE too.
11520 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
11522 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
11523 __builtin_altivec_abs*.
11526 * config/rs6000/rs6000.h (rs6000_builtins): Add
11527 ALTIVEC_BUILTIN_ABS*.
11529 * config/rs6000/altivec.h: Use const char for builtins expecting
11531 (vec_abs): New versions for C and C++.
11534 2002-02-10 Kazu Hirata <kazu@hxi.com>
11536 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
11539 2002-02-10 Kazu Hirata <kazu@hxi.com>
11541 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
11542 constant definition from h8300.md.
11543 (FRAME_POINTER_REGNUM): Likewise.
11544 * config/h8300/h8300.md (define_constants): Add FP_REG.
11546 2002-02-10 Kazu Hirata <kazu@hxi.com>
11548 * config/h8300/h8300.c (print_operand): Remove redundant code.
11550 2002-02-10 Kazu Hirata <kazu@hxi.com>
11552 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
11553 * config/h8300/h8300.c (byte_reg): Make it static.
11555 2002-02-10 Richard Henderson <rth@redhat.com>
11558 * c-typeck.c (incomplete_type_error): Handle flexible array members.
11560 2002-02-10 Richard Henderson <rth@redhat.com>
11563 * tree.c (append_random_chars): Don't abort if main_input_filename
11566 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
11568 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
11570 2002-02-10 Kazu Hirata <kazu@hxi.com>
11572 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
11573 (pushhi1): Likewise.
11575 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
11577 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
11578 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
11580 2002-02-09 David O'Brien <obrien@FreeBSD.org>
11582 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
11584 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
11586 2002-02-09 Kazu Hirata <kazu@hxi.com>
11588 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
11589 a half of an SImode register on H8/300.
11591 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
11593 * i386.md (movdi_2): Add missing '!'.
11595 2002-02-09 Kazu Hirata <kazu@hxi.com>
11597 * config/h8300/h8300.h: Fix formatting. Remove commented-out
11600 2002-02-09 Kazu Hirata <kazu@hxi.com>
11602 * config/h8300/h8300.md (length): Correct the distance valid
11603 for the short branch.
11605 2002-02-09 Kazu Hirata <kazu@hxi.com>
11607 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
11609 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
11611 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
11612 registers in SImode.
11613 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
11616 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
11619 Contribute sh64-elf.
11620 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
11621 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
11622 (sh_cannot_modify_jumps_p): New function.
11623 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
11624 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
11625 (sh_ms_bitfield_layout_p): New function.
11626 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
11627 Zack Weinberg <zack@codesourcery.com>
11628 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
11629 expand_simple_binop instead of expand_binop.
11630 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
11631 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
11632 use of .quad and .uaquad.
11633 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
11634 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
11635 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11636 * config/sh/sh.md (movdi_const, movdi_const_32bit,
11637 movdi_const_16bit): Make sure all CONSTs have modes.
11638 (sym2PIC): Ditto, but by adjusting all callers.
11639 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
11640 if the prologue calls the SHmedia argument decoder or register
11642 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11643 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
11644 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
11645 (sh_expand_epilogue): Don't emit USE of return target register.
11646 (prepare_move_operands): Legitimize DImode PIC addresses.
11647 (sh_media_register_for_return): Skip tr0, used to initialize the
11649 (sh_expand_prologue): Remove explicit USE of return register.
11650 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
11651 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
11652 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
11653 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
11654 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
11655 EXTRA_CONSTRAINT_T.
11656 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
11657 (MOVI_SHORI_BASE_OPERAND_P): New.
11658 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
11659 (EXTRA_CONSTRAINT_T): Define in terms of them.
11660 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
11661 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
11662 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
11663 alternatives supporting TARGET_REGS.
11664 (UNSPEC_GOTPLT): New constant.
11665 (movdi split): Move incrementing of LABEL_NUSES...
11666 (movdi_const, movdi_const_32bit): Here. Use
11667 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
11668 (movdi_const_16bit): New.
11669 (call, call_value) [flag_pic]: Use GOTPLT.
11670 (call_pop, call_value_pop): New expands.
11671 (call_pop_compact, call_pop_rettramp): New insns.
11672 (call_value_pop_compact, call_value_pop_rettramp): New insns.
11673 (sibcall) [flag_pic]: Use GOT.
11674 (builtint_setjmp_receiver): Remove bogus, unused expand.
11675 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
11676 (*pt, *ptb, ptrel): New insns.
11677 (sym2GOT): Handle DImode GOT.
11678 (sym2GOTPLT, symGOTPLT2reg): New expands.
11679 (sym2PIC): New expand.
11680 (shcompact_return_tramp): Use GOTPLT to return trampoline.
11681 (shcompact_return_tramp_i): Use return register explicitly.
11682 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
11683 disable flag_reorder_blocks.
11684 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
11685 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
11686 clobbers, for clarity.
11687 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
11688 restoring of r0 in macl as MAYBE_DEAD.
11689 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
11690 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
11691 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
11692 alter_subreg all over.
11693 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
11694 reload, instead of emitting instructions that would require
11696 (casesi_load_media): Add missing modes.
11697 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
11698 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
11699 as used if the argument decoder is called.
11700 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
11701 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
11702 Pmode, then extend it to DImode if necessary.
11703 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
11704 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
11705 constants in FPU-enabled SHmedia, let them be loaded from memory.
11706 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
11707 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
11708 Adjust whitespace in assembly output templates.
11709 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
11710 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
11711 mode of if_then_else.
11712 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
11713 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
11715 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
11716 Joern Rennecke <amylaar@redhat.com>
11717 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
11718 (SUBTARGET_CPP_PTR_SPEC): New.
11719 (SUBTARGET_CPP_SPEC): Remove.
11720 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
11721 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
11722 Fix typo in previous checkin.
11723 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
11724 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
11725 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
11726 Alexandre Oliva <aoliva@redhat.com>
11727 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
11728 what single FP register can hold for SHmedia target.
11729 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
11730 Alexandre Oliva <aoliva@redhat.com>
11731 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
11732 Do not split into SUBREG.
11733 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
11734 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
11735 and added new functions as specified in SH5 ABI r9.
11736 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
11737 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
11739 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
11740 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
11741 gen_consttable_4 and gen_consttable_8. Emit multiple labels
11742 and consttable_window_ends.
11743 2001-06-03 Graham Stott <grahams@redhat,com>
11744 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
11745 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
11746 * config/sh/sh.c (print_operand): Handle floating-point pair,
11747 vector and matrix registers.
11748 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
11749 vector modes into account.
11750 * config/sh/sh.md (movv2sf): Split move between registers into
11752 (movv4sf, movv16sf): Introduce insns that get split only after
11754 * config/sh/shmedia.h: Fix Copyright dates.
11755 * config/sh/ushmedia.h: Likewise. Move loop counter
11756 declarations into conditionals that uses them.
11757 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
11759 * config/sh/sshmedia.h: Fix Copyright dates.
11760 (sh_media_PUTCFG): Fix constraints.
11761 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
11762 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
11763 ptrmemfunc_vbit_in_delta for SH5.
11764 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
11765 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
11766 * invoke.texi: Likewise.
11767 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
11768 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
11769 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
11770 GCC_pop_shmedia_regs_nofpu): New global symbols.
11771 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
11772 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
11773 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
11774 compact function with nonlocal labels.
11775 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
11776 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
11777 (initial_elimination_offset): Account for their stack space.
11778 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
11779 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
11780 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
11781 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
11782 least one of the operands to be a register.
11783 (movv2sf): Likewise. Renamed to movv2sf_i.
11784 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
11785 prepare_move_operands() before emitting SHmedia insns.
11786 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
11787 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
11788 Don't save nor initialize r12. Don't mis-align the stack.
11789 Pad the code with a nop.
11790 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
11792 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
11793 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
11794 [__SHMEDIA__]: Implement.
11795 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
11796 * config/sh/sh.md: Set latency of `pt' closer to reality.
11797 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
11798 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
11799 Set move, load and store type attributes.
11800 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
11801 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
11803 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
11804 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
11805 * config/sh/sh.c (sh_media_register_for_return): New function.
11806 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
11807 branch-target register.
11808 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
11809 * config/sh/sh.md (return_media_i): Use any call-clobbered
11810 branch-target register.
11811 (return_media): If r18 wasn't copied in the prologue, copy it
11813 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
11814 Clear class FP0_REGS.
11815 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
11817 2001-03-08 DJ Delorie <dj@redhat.com>
11818 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
11819 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
11820 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
11821 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
11822 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
11823 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
11824 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
11825 return value correctly for call_cookie.
11826 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
11827 * config/sh/crt1.asm (start): Modified so as to call
11828 ___setup_argv_and_call_main.
11829 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
11830 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
11832 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
11833 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
11834 (STRIP_NAME_ENCODING): Use it.
11835 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
11836 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
11837 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
11838 prepare_scc_operands().
11839 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
11840 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
11841 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
11842 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
11843 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
11844 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
11845 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
11846 used in shcompact_incoming_args.
11847 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
11849 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
11851 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
11852 Adjust accordingly.
11853 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
11854 Simplify. Adjust. Add sanity check.
11855 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
11857 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
11859 (udivsi3, divsi3): Use them.
11860 (force_mode_for_call): New insn.
11861 (call, call_value, sibcall_value): Emit it before SHcompact
11863 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
11864 * config/sh/sh.md (call, call_value, sibcall): Make sure the
11865 call cookie is non-NULL before taking its value.
11866 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
11867 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
11868 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
11869 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
11871 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
11872 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
11873 temporary for stack adjusts. Use MACL and MACH to pass
11874 arguments to shcompact_incoming_args.
11875 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
11877 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
11878 (nested_trampoline): Load static chain address into r1.
11879 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
11880 2001-01-07 Alexandre Oliva <aoliva@redhat.com
11881 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
11882 fp_arith_reg_operand().
11883 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
11884 * config/sh/sh.md (casesi): Sign-extend the first two operands,
11885 and use signed compares for them.
11886 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
11887 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
11888 ones properly aligned.
11889 (find_barrier): Account for extra alignment needed for 8-byte wide
11891 (machine_dependent_reorg): Require a label for the second 4-byte
11892 constant after an 8-byte one.
11893 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
11895 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11896 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
11897 last_float when switching float modes.
11898 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
11899 auto-increment for general-purpose registers.
11900 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
11902 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
11904 * config/sh/sh.c (sh_builtin_saveregs): Support using all
11905 registers for varargs.
11906 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
11907 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
11908 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
11909 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
11910 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
11911 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
11912 call_cookie accordingly.
11913 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
11914 (SHCOMPACT_BYREF): Likewise.
11915 (SHCOMPACT_FORCE_ON_STACK): New macro.
11916 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
11917 (sh_builtin_saveregs): Likewise.
11918 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11919 shcompact_incoming_args): Use new shift values. Support
11920 sequences of consecutive and non-consecutive pushes/pops.
11921 * config/sh/sh.md (return): Don't explicitly use PR_REG.
11922 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
11923 * config/sh/sh.h (TEXT_SECTION): Define.
11924 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
11925 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11926 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
11927 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
11928 return values on FPU-enabled SHmedia.
11929 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
11930 FPU-enabled SHmedia.
11931 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
11932 value is returned in a non-FP reg and is not returned by
11934 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
11936 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
11937 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
11938 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
11939 quad-aligned to be passed by callee-copy reference.
11940 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
11941 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
11942 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
11943 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
11944 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
11945 copying low-numbered FP regs to r7 and r8.
11946 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
11947 FP regs to general-purpose regs only if the copy was passed on the
11949 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
11950 copying FP reg to r9.
11951 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
11952 copy FP regs to general-purpose regs only in outgoing calls.
11953 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
11954 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
11956 * config/sh/sh.h (struct sh_args): Document all fields.
11957 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
11958 passed partially on the stack should not consider making
11960 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
11961 stack_regs only for incoming calls. When passing FP args,
11962 make sure there are FP regs available before modifying
11964 (SHCOMPACT_BYREF): Pass double args in general-purpose
11965 registers by reference.
11966 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
11967 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
11968 attempt to generate sibcalls if the caller got any arguments
11970 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
11971 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
11972 to 8-byte boundaries.
11973 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
11974 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
11975 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
11976 stored in the stack.
11977 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
11978 for the offsets to have the ISA bit set.
11979 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
11980 invocation. Use beq instead of bgt to mark end of sequence of
11982 (shcompact_incoming_args): Fix store of r2. Use beq instead of
11983 bgt to mark end of sequence of stores.
11984 * config/sh/sh.c (arith_operand): Don't check whether
11985 CONST_OK_FOR_J for now.
11986 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
11987 instead of long for conversion.
11988 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
11989 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
11990 before passing it to fprintf.
11991 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
11992 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
11993 Call set_fpscr before reading/writing SR.
11994 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
11996 * config/sh/lib1funcs.asm: Add `.align 2' directives before
11998 (FMOVD_WORKS): Define on SH5 with FPU.
11999 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12001 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12003 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12004 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12006 (ia_main_table): Ditto.
12007 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12008 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12009 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12010 the definitions from sh.h.
12011 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12013 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12014 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12015 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12016 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12017 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12018 Increment LABEL_NUSES.
12020 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12022 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12024 * config/sh/elf.h (SIZE_TYPE): Likewise.
12025 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12026 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12027 shcompact_incoming_args): Load switch table addresses using
12029 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12030 (NO_BUILTIN_SIZE_TYPE): Define.
12031 (SIZE_TYPE): Don't define.
12032 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12033 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12034 definition of __SH5__=32 for -m5-compact-nofpu.
12035 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12037 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12038 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12039 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12040 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12041 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12042 (INSN_LENGTH_ALIGNMENT): Likewise.
12043 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12044 * config/sh/sh.md (call, call_value, sibcall): Simplify
12045 copying of non-branch-target register.
12046 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12047 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12048 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12049 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12050 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12051 floating-point values as structs.
12052 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12053 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12054 general-purpose register.
12055 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12056 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12057 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12058 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12059 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12060 (ENCODE_SECTION_INFO): Enclose variables and constants in
12062 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12063 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12064 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12065 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12066 only for LABEL_REFs. For SYMBOL_REFs, prepend
12067 SH_DATALABEL_ENCODING to the symbol name.
12068 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12070 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12071 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12073 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12074 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12075 (DATALABEL_REF_P): Don't require CONST.
12076 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12078 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12079 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12081 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12082 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12083 Use shallow_copy_rtx and PUT_MODE to change the mode of
12084 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12085 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12086 on SHmedia using GENERAL_REGs.
12087 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12088 bltu_media_i): Fix reversion of conditions.
12089 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12090 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12091 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12092 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12093 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12094 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12095 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12096 (GCC_nested_trampoline): Likewise.
12097 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12098 * config/sh/sh.c (gen_datalabel_ref): Define.
12099 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12100 (INITIALIZE_TRAMPOLINE): Likewise.
12101 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12102 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12103 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12104 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12105 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12106 (ic_invalidate): Adjust for SH5.
12107 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12108 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12109 _nested_trampoline.
12110 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12111 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12112 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12113 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12114 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12115 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12116 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12117 * config/sh/sh.c (target_reg_operand): Match only target-branch
12118 registers and pseudos that aren't virtual registers.
12119 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12120 Copy operands that don't match target_reg_operand to pseudos.
12121 (call_media, call_value_media, sibcall_media): Use
12122 target_reg_operand instead of target_operand.
12123 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12124 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12125 * config/sh/sh.c (target_reg_operand): Match hardware registers
12126 other than branch-target registers.
12127 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12128 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12129 (fpscr_values) [SH5 == 32]: Define.
12130 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12131 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12132 Handle function addresses coming in SUBREGs.
12133 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12134 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12135 shcompact_return_trampoline): Use datalabel where appropriate.
12136 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12137 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12138 general-purpose register to copy one branch-target register to
12140 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12141 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12142 SYMBOL_REFs with VOIDmode.
12143 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12144 bltu_media_i): New insns.
12145 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12146 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12147 (INIT_CUMULATIVE_ARGS): Likewise.
12148 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
12149 * machmode.def (V16SFmode): New mode.
12150 * c-common.c (type_for_mode): Support V2SF and V16SF.
12151 * tree.c (build_common_tree_nodes_2): Likewise.
12152 * tree.h (tree_index): Likewise.
12153 * calls.c (emit_call_1): Take args_so_far. Adjust all
12154 callers. Introduce CALL_POPS_ARGS.
12155 * tm.texi (CALL_POPS_ARGS): Document.
12156 * config/sh/crt1.asm: Implement in SHmedia mode.
12157 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12158 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12159 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12160 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12161 Implement divsi and udivsi in SHmedia mode. Introduce
12162 SHcompact trampolines.
12163 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12165 (regno_reg_class): Rewrite.
12166 (fp_reg_names): Remove.
12167 (sh_register_names, sh_additional_register_names): New.
12168 (print_operand): Added `u'. Support SUBREGs in addresses.
12169 Add parentheses around shifted CONSTs.
12170 (output_file_start): Output .mode and .abi directives.
12171 (shiftcosts, addsubcosts, multcosts): Adjust.
12172 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
12173 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
12174 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
12175 bytes, not registers. Take into account the need for the
12176 SHcompact incoming args trampoline. Adjust all callers.
12177 (sh_expand_prologue): Take stack_regs into account. Call
12178 incoming args trampoline. Keep stack aligned as per SH5 ABI.
12179 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
12180 stack aligned as per SH5 ABI.
12181 (sh_builtin_saveregs): Support SH5 ABI.
12182 (sh_build_va_list, sh_va_start): Likewise.
12183 (initial_elimination_offset): Take alignment into account.
12184 Compute location of PR according to the SH5 stack frame.
12185 (arith_reg_operand): Reject branch-target registers.
12186 (shmedia_6bit_operand): New.
12187 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12188 (target_reg_operand): Match DImode only. Accept SUBREGs.
12189 (target_operand): New.
12190 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12191 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
12192 SIBCALL_REGS for SHmedia.
12193 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12194 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12195 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12196 (TARGET_SWITCHES): New SH5 flags.
12197 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
12198 VALID_REGISTER_P to disable unsupported registers.
12199 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12200 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12201 (FUNCTION_ARG_PADDING): Define.
12202 (FASTEST_ALIGNMENT): Adjust.
12203 (SH_REGISTER_NAMES_INITIALIZER): New.
12204 (sh_register_names): Declare.
12205 (DEBUG_REGISTER_NAMES): Define.
12206 (REGISTER_NAMES): Define based on sh_register_names.
12207 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12208 (sh_additional_register_names): Declare.
12209 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12210 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12211 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12212 (REGISTER_NATURAL_MODE): Define.
12213 (FIRST_PSEUDO_REGISTER): Adjust.
12214 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12215 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12216 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12217 (VECTOR_MODE_SUPPORTED_P): Define.
12218 (REG_CLASS_CONTENTS): Adjust.
12219 (SMALL_REGISTER_CLASSES): Adjust.
12220 (REG_ALLOC_ORDER): Adjust.
12221 (INDEX_REG_CLASS): Adjust.
12222 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12223 (CONST_OK_FOR_LETTER_P): Adjust.
12224 (PREFERRED_RELOAD_CLASS): Adjust.
12225 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12226 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12227 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12228 (FIRST_FP_PARM_REG): Adjust.
12229 (CALL_POPS_ARGS): Define.
12230 (FUNCTION_ARG_REGNO_P): Adjust.
12231 (struct sh_args): New fields.
12232 (GET_SH_ARG_CLASS): Adjust.
12233 (INIT_CUMULATIVE_ARGS): Adjust.
12234 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
12235 (FUNCTION_ARG_ADVANCE): Adjust.
12236 (FUNCTION_ARG): Adjust.
12237 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
12238 (FUNCTION_ARG_CALLEE_COPIES): Define.
12239 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
12240 (STRICT_ARGUMENT_NAMING): Define.
12241 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
12242 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
12243 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
12244 (SETUP_INCOMING_VARARGS): Adjust.
12245 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
12246 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
12247 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
12248 (SUBREG_OK_FOR_INDEX_P): Adjust.
12249 (EXTRA_CONSTRAINT_S): Update.
12250 (EXTRA_CONSTRAINT_T): New.
12251 (EXTRA_CONSTRAINT): Adjust.
12252 (GO_IF_LEGITIMATE_INDEX): Adjust.
12253 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
12254 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
12255 (MOVE_MAX): Adjust.
12256 (MAX_MOVE_MAX): Define.
12258 (CONST_COSTS): Adjust.
12259 (REGISTER_MOVE_COST): Adjust.
12260 (BRANCH_COST): Adjust.
12261 (TEXT_SECTION_ASM_OP): Adjust.
12262 (DBX_REGISTER_NUMBER): Adjust.
12263 (ASM_OUTPUT_DOUBLE_INT): New.
12264 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
12265 (PREDICATE_CODES): Adjust.
12266 (PROMOTE_MODE): Adjust.
12267 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
12268 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
12269 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
12270 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
12271 (DR0_REG, DR2_REG, DR4_REG): Renumber.
12272 (TR0_REG, TR1_REG, TR2_REG): New.
12273 (XD0_REG): Renumber.
12274 (UNSPEC_COMPACT_ARGS): New.
12275 (type): Added pt and ptabs.
12276 (length): Default to 4 on SHmedia. Default pt length to 12
12277 and 20 on SHmedia32 and SHmedia64, respectively.
12278 (pt): New function unit.
12279 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
12280 Add whitespace between operands of SHmedia instructions.
12282 (adddi3_media, addsi3_media): Adjust constraints.
12283 (subsi3) [SHmedia]: Force operand 1 into a register.
12284 (udivsi3_i1_media, udivsi3_i4_media): New.
12285 (udivsi3): Support SHmedia.
12286 (divsi3_i1_media, divsi3_i4_media): New.
12287 (divsi3): Support SHmedia.
12288 (anddi3, iordi3, xordi3): Adjust constraints.
12289 (zero_extendhidi2, zero_extendqidi2): New.
12290 (extendsidi2, extendhidi2, extendqidi2): New.
12291 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
12292 (pop_e, pop_fpul, pop_4): Likewise.
12293 (movsi_media): Support FP and BT registers.
12294 (movsi_media_nofpu): New. Adjust splits to DImode.
12295 (lduw, ldub): Renamed to zero_extend* above.
12296 (movqi_media): Fix typo.
12297 (movdi_media): Support FP and BT registers.
12298 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
12299 (movdi_const_32bit): New.
12300 (shori_media): Require immediate operand. Use `u' for output.
12301 (movdf_media, movsf_media): Simplified.
12302 (movdf_media_nofpu, movsf_media_nofpu): New.
12303 (movdf, movsf): Adjust
12304 (movv2sf, movv2sf, movv16sf): New.
12305 (beq_media, beq_media_i): Adjust constraints. Don't use
12306 scratch BT register.
12307 (bne_media, bne_media_i): Likewise.
12308 (bgt_media, bgt_media_i): Likewise.
12309 (bge_media, bge_media_i): Likewise.
12310 (bgtu_media, bgtu_media_i): Likewise.
12311 (bgeu_media, bgeu_media_i): Likewise.
12312 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
12313 bunordered): Emit jump insn. Force operands to registers when
12315 (jump_media, jump): Simplify.
12316 (call_compact, call_compact_rettramp): New.
12317 (call_value_compact, call_value_compact_rettramp): New.
12318 (call_media, call_value_media): Simplify.
12319 (sibcall_compact, sibcall_media): New.
12320 (call, call_value): Adjust for SHmedia and SHcompact.
12321 (sibcall, sibcall_value, untyped_call): Likewise.
12322 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
12323 (indirect_jump): Adjust for SHmedia.
12324 (casesi_jump_media): New.
12325 (nop): Re-enable for SHmedia.
12326 (call_site): Restrict to SH1.
12327 (casesi): Adjust for SHmedia.
12328 (casesi_shift_media, casesi_load_media): New.
12329 (return): Explicitly use PR register. Call return trampoline
12331 (return_i): Explicitly use PR register.
12332 (shcompact_return_tramp, shcompact_return_tramp_i): New.
12333 (return_media): Adjust.
12334 (shcompact_incoming_args): New.
12335 (epilogue): Adjust.
12336 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12337 (movstrsi): Disable on SH5.
12338 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
12339 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
12340 (subsf3, subsf3_media): Likewise.
12341 (mulsf3, mulsf3_media, mac_media): Likewise.
12342 (divsf3, divsf3_media): Likewise.
12343 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
12344 (floatsisf2, fux_truncsfsi2): Likewise.
12345 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
12347 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
12348 (cmpunsf_media, cmpsf): Likewise.
12349 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
12350 (abssf2, abssf2_media): Likewise.
12351 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
12352 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
12353 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
12354 (floatsidf2, fix_truncdfsi2): Likewise.
12355 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
12357 (cmpeqdf_media, cmpgtdf_media): Likewise.
12358 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
12359 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
12360 (absdf2, absdf2_media): Likewise.
12361 (extendsfdf2, extendsfdf2_media): Likewise.
12362 (truncsfdf2, truncsfdf2_media): Likewise.
12363 * config/sh/sh64.h: New file.
12364 * config/sh/t-sh64: New file.
12365 * config/sh/shmedia.h: New file.
12366 * config/sh/ushmedia.h: New file.
12367 * config/sh/sshmedia.h: New file.
12368 * configure.in: Added sh64-*-elf.
12369 * configure: Rebuilt.
12370 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
12371 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
12372 (reg_class_from_letter): Use `b' for TARGET_REGS.
12373 (print_operand): Support `%M', `%m', `AND' and
12374 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
12375 (andcosts): Adjust for SHmedia.
12376 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
12378 (target_reg_operand): New function.
12379 * config/sh/sh-protos.h (target_reg_operand): Declare.
12380 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
12381 FP registers on SH5.
12382 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
12384 (TARGET_REGISTER_P): New macro.
12385 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
12386 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
12387 (EXTRA_CONSTRAINT_S): New macro.
12388 (EXTRA_CONSTRAINT): Adjust.
12389 (FLOAT_TYPE_SIZE): Define to 32.
12390 (Pmode): DImode on SHmedia.
12391 (CONST_COSTS): Adjust for SHmedia literals.
12392 (PREDICATE_CODES): Added target_reg_operand.
12393 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
12394 * config/sh/sh.md: Remove all attrs from SHmedia insns.
12395 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
12396 (cmpdi): Accept SHmedia.
12397 (movdicc_false, movdicc_true): New insns.
12398 (movdicc): New expand.
12399 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
12401 (addsi3_media): Match `S' constraint.
12402 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
12403 (negdi2): Expand for SHmedia.
12404 (one_cmpldi2): New expand.
12405 (zero_extendsidi2): Change from expand to insn.
12406 (extendsidi2): Add constraints.
12407 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
12408 LD/ST address. Fix SI immediate loading split.
12409 (movhi_media, movqi_media, lduw, ldub): New insns.
12410 (movhi, movqi): Accept SHmedia.
12411 (shori_media, movdi_media): Relax input constraints. Split
12412 symbolic constants.
12413 (movdf_media, movsf_media): New insn. New split to movdi.
12414 (movdf, movsf): Match on SHmedia.
12415 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
12416 bgeu_media): New insns and splits. New insns with `_i' suffix.
12417 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
12418 (bunordered): New expand.
12419 (jump_compact): Renamed from `jump'.
12420 (jump_media): New insn.
12421 (jump): New expand.
12422 (call_media, call_value_media): New insns.
12423 (call, call_value): Adjust.
12424 (indirect_jump_compact): Renamed from `indirect_jump'.
12425 (indirect_jump_media): New insn.
12426 (indirect_jump): New expand.
12427 (untyped_call, return): Accept SHmedia.
12428 (return_media): New insn.
12429 (prologue, epilogue, blockage): Accept SHmedia.
12430 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12431 (sunordered): New expand.
12432 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
12433 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
12434 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
12435 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
12436 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
12437 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
12438 abssf2_media): New insns.
12439 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
12440 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
12441 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
12442 floatdidf2, floatsidf2_media, fix_truncdfdi2,
12443 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
12444 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
12445 absdf2_media): New insns.
12446 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
12447 (extendsfdf2_media, truncdfsf2_media): New insns.
12448 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
12449 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
12450 * config/sh/sh.h (CONST_OK_FOR_J): Document.
12451 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
12452 * config/sh/sh.md (adddi3): New expand.
12453 (adddi3_media, adddi3z_media): New insns.
12454 (adddi3_compact): Renamed from adddi3.
12455 (addsi3_media): Use add.l r63 to add constant zero.
12456 (subdi3): New expand.
12457 (subdi3_media): New insn.
12458 (subdi3_compact): Renamed from subdi3.
12459 (mulsidi3): New expand.
12460 (mulsidi3_media): New insn.
12461 (mulsidi3_compact): Renamed from mulsidi3.
12462 (umulsidi3): New expand.
12463 (umulsidi3_media): New insn.
12464 (umulsidi3_compact): Renamed from umulsidi3.
12465 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
12466 (ashlsi3, ashrsi3, lshrsi3): Use them.
12467 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
12468 (ashldi3, ashrdi3, lshrdi3): Use them.
12469 (zero_extendsidi2): New expand.
12470 (extendsidi2): New insn.
12471 (movsi_media): New insn. Split to movdi to load constants.
12472 (movsi): Enable for shmedia.
12473 (movdi_media): New insn. Use shori_media to load wide constants.
12474 (short_media): New insn.
12475 (movdi): Enable for shmedia.
12476 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
12477 * config/sh/sh.h (CPP_SPEC): Added `m5'.
12478 (SUBTARGET_CPP_SPEC): Added `!m5'.
12479 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
12480 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
12481 to all other SH variants.
12482 (TARGET_DEFAULT): Set to SH1_BIT.
12483 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
12484 (BITS_PER_WORD): Raise to 64 on shmedia.
12485 (MAX_BITS_PER_WORD): Change to 64.
12486 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
12487 (INT_TYPE_SIZE): Keep as 32.
12488 (UNITS_PER_WORD): Raise to 8 on shmedia.
12489 (MIN_UNITS_PER_WORD): Keep as 4.
12490 (POINTER_SIZE): Raise to 64 on shmedia.
12491 (CONST_OK_FOR_J): New macro.
12492 (CONST_OK_FOR_LETTER_P): Use it.
12493 (processor_type): Add PROCESSOR_SH5.
12494 * config/sh/sh.md: Conditionalize all expands, insns and
12495 splits to TARGET_SH1.
12497 (addsi3_compact): Renamed from...
12498 (addsi3): Now an expand.
12499 (addsi3_media, subsi3_media): New insns.
12500 (subsi3): Don't negate constants with SHmedia.
12502 * hooks.c: New file.
12503 * hooks.h: New file.
12504 * Makefile.in (HOOKS_H): New.
12505 (TARGET_DEF_H): Added $(HOOKS_H).
12506 (OBJS): Added hooks.o.
12507 (cfgcleanup.o, bb-reorder.o): Added target.h.
12508 (hooks.o): Added dependencies.
12509 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
12510 (TARGET_INITIALIZER): this.
12511 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
12512 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
12513 * bb-reorder.c: Include target.h.
12514 (reorder_basic_blocks): Skip if cannot modify jumps.
12515 * cfgcleanup.c: Include target.h.
12516 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
12518 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12520 * config/mips/mips.md (casesi_internal, casesi_internal_di):
12521 Protect jump delay slot instructions with .set noreorder and
12524 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12526 * config/mips/mips.md (casesi_internal_di): Calculate
12527 the index into the target offset table correctly.
12529 2002-02-08 Richard Henderson <rth@redhat.com>
12531 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
12532 * final.c (output_addr_const): Accept and discard SUBREG.
12533 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
12534 mark them unknown instead.
12535 (simplify_subtraction): Handle RTX_UNKNOWN.
12536 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
12538 2002-02-08 David Edelsohn <edelsohn@gnu.org>
12540 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
12542 2002-02-08 Richard Henderson <rth@redhat.com>
12544 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
12546 2002-02-08 Andreas Jaeger <aj@suse.de>
12548 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
12549 * config/i386/t-linux64: New file.
12551 2002-02-08 Jakub Jelinek <jakub@redhat.com>
12553 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
12554 * c-parse.in (compstmt): Clear last_expr_type.
12556 2002-02-07 Richard Henderson <rth@redhat.com>
12558 * loop.c (strength_reduce): Sink final_value when not
12561 2002-02-07 David O'Brien <obrien@FreeBSD.org>
12563 * config/sparc/freebsd.h: Fix mismatched spec {.
12565 2002-02-07 Richard Henderson <rth@redhat.com>
12567 * cfgrtl.c: Include recog.h and insn-config.h.
12568 (keep_with_call_p): Fix general_operand invocation.
12569 * Makefile.in (cfgrtl.o): Update dependencies.
12571 2002-02-07 Kazu Hirata <kazu@hxi.com>
12573 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
12574 comment. Accept HImode only if TARGET_H8300.
12576 2002-02-07 Eric Christopher <echristo@redhat.com>
12578 * config/mips/crtn.asm: Cleanup #ifdefs.
12580 2002-02-07 Eric Christopher <echristo@redhat.com>
12582 * config/mips/crti.asm: Add changes for mips16. mips16 uses
12583 register 7 as RA instead of $31.
12584 * config/mips/crtn.asm: Ditto.
12585 * config/mips/mips.c (mips_move_2words): Add case for
12586 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
12587 (compute_frame_size): Fix typo.
12588 (save_restore_insns): Ditto. Make documentation about using
12589 register $7 as return register more precise.
12590 (mips_expand_epilogue): Fix comment. Add code to work around not
12591 being able to add to the stack pointer directly.
12592 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
12593 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
12596 2002-02-07 Tom Rix <trix@redhat.com>
12598 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
12599 immediates in ldu and stdu DS opcode field.
12600 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
12601 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
12602 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
12604 2002-02-07 Jeff Sturm <jsturm@one-point.com>
12606 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
12607 offset for stack bias.
12609 2002-02-07 H.J. Lu <hjl@gnu.org>
12611 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
12613 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
12615 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
12617 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
12619 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
12620 * i386.c (x86_order_regs_for_local_alloc): New global function.
12621 * i386.h (REG_ALLOC_ORDER): CLeanup.
12622 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
12624 2002-02-07 Richard Henderson <rth@redhat.com>
12626 PR optimization/2463
12627 * alias.c (find_base_value): Recall base values for fixed hard regs.
12628 * loop.c (loop_regs_update): Don't use single_set on non-insns.
12630 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
12632 * config/mips/mips.md (define_delay) [mips16]: Adjust required
12635 2002-02-06 Richard Henderson <rth@redhat.com>
12638 * stmt.c (resolve_operand_name_1): Take more care with mixed
12639 named and unnamed operands.
12641 2002-02-06 Janis Johnson <janis187@us.ibm.com>
12642 Jan Hubicka <jh@suse.cz>
12644 * loop.c (remove_constant_addition): Avoid clobbering a shared
12647 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12649 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
12650 * config/s390/t-linux64: New file.
12651 * config/s390/libgcc-glibc.ver: New file.
12653 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12655 * config/s390/linux64.h: Delete file.
12656 * config/s390/s390x.h: New file.
12657 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
12658 as target header file.
12659 * config/s390/linux.h (TARGET_VERSION): Define depending on
12660 DEFAULT_TARGET_64BIT.
12661 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
12662 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
12663 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
12664 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
12665 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
12666 (EXTRA_SPEC): New define.
12667 * config/s390/s390.h (TARGET_VERSION): Define depending on
12668 DEFAULT_TARGET_64BIT.
12669 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
12671 2002-02-06 Jason Merrill <jason@redhat.com>
12673 * c-decl.c (finish_function): Warn about a non-void function with
12674 no return statement and no abnormal exit.
12675 (current_function_returns_abnormally): New variable.
12676 (start_function): Clear it.
12677 (struct c_language_function): Add returns_abnormally.
12678 (push_c_function_context): Save it.
12679 (pop_c_function_context): Restore it.
12680 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
12681 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
12682 an explicit return type.
12683 * c-tree.h: Declare current_function_returns_abnormally.
12684 (C_FUNCTION_IMPLICIT_INT): New macro.
12685 * c-typeck.c (build_function_call): Set it.
12686 (c_expand_return): Set current_function_returns_value even if the
12687 value is erroneous.
12689 2002-02-06 Jakub Jelinek <jakub@redhat.com>
12692 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
12693 unsafe for reevaluation.
12695 2002-02-06 Jakub Jelinek <jakub@redhat.com>
12698 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
12699 EXPR_STMT, but COMPOUND_STMT, recurse into it.
12701 2002-02-06 Richard Henderson <rth@redhat.com>
12703 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
12704 be a general_operand. Dest for function value must be a pseudo.
12706 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12708 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
12709 as SYMBOL_REFs from the constant pool.
12711 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
12713 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
12714 passed by invisible reference.
12716 2002-02-05 Richard Henderson <rth@redhat.com>
12718 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
12720 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
12722 Implement using "base addresses" in insn operands as default.
12723 * config/mmix/mmix.c (mmix_conditional_register_usage): if
12724 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
12725 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
12726 used to read the rtx value.
12727 (mmix_target_asm_function_epilogue): Fix spacing.
12728 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
12729 (mmix_legitimate_address): Ditto.
12730 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
12731 should be loaded with a GETA insn. Don't allocate needless extra
12732 char for nul termination and fix misleading comment.
12733 (mmix_print_operand_address): Handle constants if
12734 TARGET_BASE_ADDRESSES.
12735 (mmix_output_register_setting): Use base addressing if
12736 TARGET_BASE_ADDRESSES and the number of insns is 3.
12737 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
12738 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
12739 to use R as constraint, add LDA to match s.
12740 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
12741 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
12742 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
12743 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
12744 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
12745 order with other fixed registers.
12746 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
12747 other parameter/call-clobbered registers.
12748 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
12749 -mbase-addresses, -mno-base-addresses.
12750 (MMIX Options): Ditto.
12752 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12754 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
12756 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
12758 * config/rs6000/altivec.h: Change elem to _S_elem.
12760 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
12762 * config/netbsd.h (WCHAR_TYPE): Define.
12763 (WCHAR_TYPE_SIZE): Ditto.
12764 (WINT_TYPE): Ditto.
12765 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
12766 (WCHAR_UNSIGNED): Ditto.
12767 (WCHAR_TYPE_SIZE): Ditto.
12768 (WINT_TYPE): Ditto.
12769 * config/arm/netbsd.h: Likewise.
12770 * config/i386/netbsd-elf.h: Likewise.
12771 * config/i386/netbsd.h: Likewise.
12772 * config/m68k/netbsd-elf.h: Likewise.
12773 * config/m68k/netbsd.h: Likewise.
12774 * config/ns32k/netbsd.h: Likewise.
12775 * config/sparc/netbsd.h: Likewise.
12776 * config/vax/netbsd.: Likewise.
12778 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12780 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
12781 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
12782 (TARGET_INITIALIZER): this.
12783 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
12784 (BITFIELD_NBYTES_LIMITED): Markup fix.
12785 * tree.h (default_ms_bitfield_layout_p): Declare.
12786 (record_layout_info): Added prev_field.
12787 * tree.c (default_ms_bitfield_layout_p): New fn.
12788 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
12789 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
12790 * stor-layout.c: Include target.h.
12791 (start_record_layout): Initialize prev_field.
12792 (place_field): Handle MS bit-field layout, and disregard
12793 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
12794 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
12795 * Makefile.in (stor-layout.o): Adjust dependencies.
12797 2002-02-05 Jason Merrill <jason@redhat.com>
12799 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
12801 2002-02-05 Andreas Jaeger <aj@suse.de>
12803 * crtstuff.c: Fix comments.
12805 2002-02-05 Richard Henderson <rth@redhat.com>
12808 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
12809 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
12812 * config/mips/mips.c (function_arg): Handle TImode.
12813 (function_arg_advance): Likewise.
12815 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12817 * config/rs6000/altivec.h (vec_step_help): Rename to
12820 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12822 * config/rs6000/altivec.h: Fix typos.
12824 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
12826 * config/arm/netbsd.h: Correct a comment.
12828 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12830 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
12831 building void typed builtins.
12833 * config/rs6000/altivec.h (vec_ld*): Fix typos.
12834 (vec_step): Implement for C++.
12836 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12838 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
12840 2002-02-04 Richard Henderson <rth@redhat.com>
12842 * combine.c (nonzero_bits): Re-introduce special case for
12843 sp/fp/ap wrt REGNO_POINTER_ALIGN.
12845 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12847 * doc/extend.texi: Warn about unsupported usage of altivec
12850 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
12851 (altivec_predicate_*): New.
12853 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
12854 Add C++ version of vec_*() functions.
12856 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
12857 (bdesc_2arg): Remove altivec predicates.
12858 (altivec_expand_builtin): Handle predicates.
12859 (altivec_init_builtins): Handle predicates.
12860 (altivec_expand_predicate_builtin): New.
12862 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12864 * pa.c (DO_FRAME_NOTES): Move forward.
12865 (store_reg): Revise handling of frame notes.
12866 (load_reg): Likewise.
12867 (set_reg_plus_d): Likewise.
12868 (hppa_expand_prologue): Likewise.
12869 (hppa_expand_epilogue): Likewise.
12871 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12873 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
12875 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12877 PR c/4475, c++/3780:
12878 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
12879 * c-common.h (SWITCH_TYPE): Define.
12880 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
12881 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
12882 Rename spareness variable to sparseness.
12883 (expand_end_case_type): Renamed from expand_end_case, use orig_type
12884 if non-NULL instead of TREE_TYPE (orig_index).
12885 * tree.h (expand_end_case_type): Renamed from expand_end_case.
12886 (expand_end_case): Define using expand_end_case_type.
12887 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
12888 to expand_end_case_type.
12889 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
12891 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12893 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
12894 (BIGGEST_ALIGNMENT): Change to 128.
12896 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12898 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
12900 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12902 * pa.md (call_internal_reg_64bit): Remove unused variable.
12904 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
12906 * config/arm/arm.h (machine_function): Add uses_anonymous_args
12908 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
12909 * config/arm/arm.c (current_function_anonymous_args): Delete,
12910 replace uses with cfun->machine->uses_anonymous_args.
12911 (arm_reorg): Do not reset uses_anonymous_args.
12913 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
12914 any geenral register.
12916 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
12918 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
12921 2002-02-04 Richard Henderson <rth@redhat.com>
12923 * combine.c (force_to_mode): Remove STACK_BIAS code.
12924 (nonzero_bits): Likewise. Replace sp/fp special case with
12925 REGNO_POINTER_ALIGN.
12927 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
12928 (HARD_FRAME_POINTER_REGNUM): New.
12929 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
12930 (FIXED_REGS, CALL_USED_REGS): Update.
12931 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
12932 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
12933 (HARD_REGNO_NREGS): Update for SFP.
12934 (STACK_POINTER_OFFSET): Include bias here ...
12935 (FIRST_PARM_OFFSET): ... not here.
12936 (STACK_BIAS): Remove.
12937 (INIT_EXPANDERS): New.
12938 (STARTING_FRAME_OFFSET): Do not include bias.
12939 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
12940 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
12941 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
12942 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
12943 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
12944 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
12945 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
12946 (MUST_SAVE_REGISTER): Likewise.
12947 (sparc_flat_function_prologue): Likewise.
12948 (sparc_flat_function_epilogue): Likewise.
12949 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
12950 (sparc_init_modes): SFP is GENERAL_REGS.
12951 (sparc_builtin_saveregs): SFP does not have bias applied.
12953 2002-02-04 Richard Henderson <rth@redhat.com>
12955 * config/alpha/alpha.c (current_function_is_thunk): Don't check
12956 current_function_is_thunk.
12957 (alpha_sa_mask): Distinguish between current_function_is_thunk
12958 called from ASM_OUTPUT_MI_THUNK and not.
12959 (alpha_does_function_need_gp): Thunks always need gp.
12960 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12961 (alpha_output_mi_thunk_osf): New.
12962 * config/alpha/alpha-protos.h: Update.
12963 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
12965 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
12967 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
12968 function types, not when they're taken away.
12970 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
12972 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
12973 CODE_LABEL and jump table when replacing a table jump with a
12976 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12978 * config/s390/s390-protos.h (legitimize_la_operand,
12979 s390_secondary_input_reload_class, s390_plus_operand,
12980 s390_expand_plus_operand): Add prototypes.
12982 config/s390/s390.c (s390_secondary_input_reload_class,
12983 s390_plus_operand, s390_expand_plus_operand): New functions.
12985 (struct s390_address): New member 'pointer'.
12986 (s390_decompose_address): Compute it.
12987 (legitimate_la_operand_p): Use it.
12988 (legitimize_la_operand): New function.
12989 (movti, movdi, movdf splitters): Call it.
12991 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
12992 (PREDICATE_CODES): Add s390_plus_operand.
12994 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
12995 (la_ccclobber): Allow GENERAL_REGS as output operand.
12997 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
12998 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
12999 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13001 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13003 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13004 register names for regular asm () construct.
13006 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13008 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13011 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13013 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13016 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13018 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13019 constant pool to be identical by string address and index.
13021 2002-02-04 Anthony Green <green@redhat.com>
13023 * output.h (SECTION_OVERRIDE): Define.
13024 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13026 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13028 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13029 by existing arm*-*-netbsd* (a.out) target.
13030 (ns32k-*-netbsdelf*): Likewise.
13031 (sparc-*-netbsdelf*): Likewise.
13032 (vax-*-netbsdelf*): Likewise.
13034 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13036 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13037 headers and libobjc headers.
13039 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13041 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13042 (_mingw.h): Remove duplicate include.
13044 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13046 * config.gcc: Set cpu_type to m68k for 68010, as well.
13047 (m68010-*-netbsdelf*): New...
13048 (m68k*-*-netbsdelf*): ...targets.
13049 * config/m68k/netbsd-elf.h: New file.
13051 2002-02-02 Kazu Hirata <kazu@hxi.com>
13053 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13055 2002-02-02 Kazu Hirata <kazu@hxi.com>
13057 * config/h8300/h8300.c (h8_push_ops): Move inside
13059 (h8_pop_ops): Likewise.
13060 (h8_move_ops): Likewise.
13062 2002-02-02 Kazu Hirata <kazu@hxi.com>
13064 * config/h8300/h8300.c (os_task): Make it static.
13065 (monitor): Likewise.
13066 (pragma_saveall): Likewise.
13068 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13070 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13071 constant is a valid sign-extension for Pmode.
13073 2002-02-02 Kazu Hirata <kazu@hxi.com>
13075 * config/h8300/h8300.c: Fix formatting.
13077 2002-02-02 Kazu Hirata <kazu@hxi.com>
13079 * config/h8300/h8300.md: Fix formatting.
13081 2002-02-02 Kazu Hirata <kazu@hxi.com>
13083 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13084 predicates of operands[1]. Split the patterns for each
13087 2002-02-02 Kazu Hirata <kazu@hxi.com>
13089 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13090 of operands[1] to register_operand.
13092 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13094 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13095 * cpphash.c (_cpp_init_hashtable): Similarly.
13096 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13097 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13098 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13099 (cpp_handle_option): Handle the new options.
13100 * cpplex.c (cpp_interpret_charconst): Use new flag.
13101 * cpplib.h (struct cpp_options): New member signed_char.
13102 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13103 (cpp_options): Handle -fsigned-char and -funsigned-char.
13104 (static_specs): Remove signed_char_spec.
13105 (do_spec1): Don't handle %c.
13106 * system.h: Poison SIGNED_CHAR_SPEC.
13107 * tradcif.y (yylex): Use flag_signed_char.
13108 * tradcpp.h (flag_signed_char): New.
13109 * tradcpp.c (flag_signed_char): New.
13110 (main): Handle new command-line options.
13111 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13113 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13114 * avr/avr.h: Remove old comments.
13115 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13116 (CC1_SPEC): Pass -fsigned-char if -mic*.
13117 (SIGNED_CHAR_SPEC): Remove.
13119 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13121 2002-02-01 Eric Christopher <echristo@redhat.com>
13123 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13124 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13125 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13126 (ASM_OUTPUT_REG_POP): Ditto.
13128 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13130 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13133 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13135 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13137 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13140 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13143 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13145 * cfganal.c: Include tm_p.h.
13146 (keep_with_call_p): Fix the test that determines if a register holds
13147 the return value of a call.
13149 2002-02-01 DJ Delorie <dj@redhat.com>
13151 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13152 we are given conflicting registers, switch to the other one we
13153 had allocated for us.
13154 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13155 as TImode so we know when the "other" register is available.
13157 2002-02-01 David O'Brien <obrien@FreeBSD.org>
13159 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13162 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13164 * cfganal.c (keep_with_call_p): New function.
13165 (flow_call_edges_add): Prevent splitting a block between a call and
13166 a single-set instruction that should be kept in the same block.
13168 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
13170 * doc/install.texi (avr): Update outdated URL.
13172 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
13174 * config/stormy16/stormy16.md (pushqi): New.
13178 (movhi): Remove stack operands.
13180 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13181 nonimmediate_nonstack_operand.
13182 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13184 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13187 2002-01-31 Jason Merrill <jason@redhat.com>
13189 * Makefile.in (c-parse.c): Handle .output file.
13190 * objc/Make-lang.in (objc-parse.c): Likewise.
13192 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
13194 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13195 the -me[lb] option is given. Don't output the default flag
13198 2002-01-31 Zack Weinberg <zack@codesourcery.com>
13200 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13201 the primary source file; this has not been done yet.
13202 * c-decl.c (c_expand_body): Reset input_filename from
13203 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13205 2002-01-31 Kazu Hirata <kazu@hxi.com>
13207 * rtlanal.c (subreg_regno_offset): Do not use
13208 SUBREG_REGNO_OFFSET.
13209 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13210 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13212 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13214 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
13215 version rather than GNATS version in --version output.
13217 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
13219 * ifcvt.c (noce_process_if_block): Make a copy of the destination
13220 when copying back from a temporary.
13222 2002-01-30 Richard Henderson <rth@redhat.com>
13224 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13225 and new_dest are the same.
13227 2002-01-30 Richard Henderson <rth@redhat.com>
13230 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
13231 * rtl.c (note_insn_name): Update.
13232 * emit-rtl.c (remove_unnecessary_notes): Kill it.
13233 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
13234 to perform loop rotation.
13235 (expand_exit_loop_top_cond): New.
13236 * tree.h (expand_exit_loop_top_cond): Declare it.
13237 * c-semantics.c (genrtl_while_stmt): Use it.
13238 (genrtl_for_stmt): Likewise.
13240 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
13242 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
13243 arguments to 64-bit boundaries on 64-bit ABIs.
13245 2002-01-30 Steve Ellcey <sje@cup.hp.com>
13247 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
13249 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13251 * c-decl.c (grokdeclarator): Handle type being a typedef for an
13254 2002-01-30 David O'Brien <obrien@FreeBSD.org>
13256 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
13257 * config/sparc/sparc_bi.h: Remove file.
13258 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
13260 2002-01-30 Richard Henderson <rth@redhat.com>
13262 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
13264 2002-01-30 Zack Weinberg <zack@codesourcery.com>
13266 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
13268 2002-01-30 Jason Merrill <jason@redhat.com>
13270 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
13271 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
13272 (reg_save): Use DW_CFA_offset_extended_sf instead.
13274 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
13276 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13278 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
13281 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
13283 * rs6000.md ("*call_value_local32"): Remove constraints.
13284 ("*call_value_local64"): Same.
13285 ("*call_value_indirect_nonlocal_aix32"): Same.
13286 ("*call_value_nonlocal_aix32"): Same.
13287 ("*call_value_indirect_nonlocal_aix64"): Same.
13288 ("*call_value_nonlocal_aix64"): Same.
13289 ("*call_value_nonlocal_sysv"): Same.
13291 2002-01-29 Richard Henderson <rth@redhat.com>
13293 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
13295 2002-01-29 Richard Henderson <rth@redhat.com>
13297 * expr.c (force_operand): Ignore flag_pic for detecting pic
13299 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
13300 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
13301 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
13302 instead of open-coded loop.
13303 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
13304 be fixed when in use.
13306 2002-01-29 Richard Henderson <rth@redhat.com>
13308 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
13309 * sched-rgn.c (propagate_deps): Update them.
13310 * sched-deps.c (sched_analyze_insn): Update them. Flush the
13311 clobbers list when either gets too long.
13313 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13315 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
13316 and INDEX_REGS the same as GENERAL_REGS.
13317 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13319 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13321 * tree.c (build_nonstandard_integer_type): Correct prototype.
13323 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
13325 * config/s390/s390.md (movstrsico, movstrdix_64,
13326 movstrsix_31): Remove, replace by ...
13327 (movstrdi_short, movstrsi_short, movstrdi_long,
13328 movstrsi_long): ... these. New.
13329 (movstrdi, movstrsi): Adapt.
13331 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
13332 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
13333 Remove unnecessary CC clobber.
13334 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
13335 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
13337 (divmoddi4): Don't partially initialize TImode register.
13339 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
13341 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
13343 2002-01-29 Richard Henderson <rth@redhat.com>
13345 * flow.c (print_rtl_and_abort): Remove.
13346 (print_rtl_and_abort_fcn): Remove.
13347 (verify_local_live_at_start): Use dump_bb instead.
13348 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
13349 (verify_wide_reg_1): Return 2 on mode test failure.
13351 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13353 PR c/3325, c/3326, c/2511, c/3347
13354 * c-decl.c (enum_decl_context): Remove BITFIELD.
13355 (grokdeclarator): Take bitfield width as an input.
13356 Ensure bitfields are given the correct type. Perform
13357 bitfield width validation with build_bitfield_integer_type
13358 rather than waiting for finish_struct.
13359 (grok_typename, grok_typename_in_parm_context, start_decl,
13360 push_parmdecl, grokfield, start_function): Update calls to
13362 (build_bitfield_integer_type): New function.
13363 (finish_struct): Move bitfield validation to grokdeclarator
13364 and build_bitfield_integer_type.
13365 * tree.c (build_nonstandard_integer_type): New function.
13366 * tree.h (build_nonstandard_integer_type): New prototype.
13368 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
13370 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13373 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
13374 don't ignore unrecognized -W* options.
13375 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
13376 * cpplib.h (cpp_handle_option): Adjust prototype.
13377 * c-decl.c (c_decode_options): Pass 0 as last argument to
13381 * gcc.c (cpp_unique_options): Split from cpp_options.
13382 (cpp_options): Source cpp_unique_options.
13383 (default_compilers): Use cpp_unique_options instead of cpp_options
13384 when used together with cc1_options.
13385 (static_specs): Add cpp_unique_options.
13386 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
13387 when used together with cc1_options.
13389 2002-01-29 Kazu Hirata <kazu@hxi.com>
13391 * config/h8300/h8300-protos.h: Update the prototype of
13393 * config/h8300/h8300.c (output_a_shift): Remove an unused
13394 argument 'insn'. Remove redundant code.
13395 * config/h8300/h8300.md: Adust to the new prototype of
13398 2002-01-29 Kazu Hirata <kazu@hxi.com>
13400 * config/h8300/h8300-protos.h: Update the prototypes of
13401 emit_a_rotate and expand_a_rotate.
13402 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
13403 first argument to 'enum rtx_code'.
13404 (expand_a_rotate): Likewise.
13406 2002-01-28 Kazu Hirata <kazu@hxi.com>
13408 * config/h8300/h8300-protos.h: Update the prototype of
13410 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
13412 * config/h8300/h8300.md: Adjust to the new prototype.
13414 2002-01-28 Kazu Hirata <kazu@hxi.com>
13416 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
13419 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
13421 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
13422 is a fixed register before returning pic_offset_table_rtx.
13423 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
13424 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
13426 2002-01-28 Jason Merrill <jason@redhat.com>
13428 * dwarf2.h: Sync with src version.
13430 2002-01-28 Paul Koning <pkoning@equallogic.com>
13432 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
13433 BT_FN_VOID_PTR_VAR.
13434 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
13435 * doc/extend.texi (__builtin_prefetch): Update documentation:
13436 first argument is now const void ptr.
13438 2002-01-28 Kazu Hirata <kazu@hxi.com>
13440 * config/h8300/h8300-protos.h: Remove an unused prototype.
13442 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
13444 * toplev.c (lang_independent_init): Round up identifier size.
13446 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13448 * config.gcc: Revert previous change.
13450 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
13452 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
13454 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13456 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
13457 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
13458 other non-elf netbsd config frags.
13459 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
13460 collect2 will does that.
13461 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
13462 shared-lib frobbing will work.
13464 2002-01-28 Kazu Hirata <kazu@hxi.com>
13466 * config/h8300/h8300.h: Fix formatting.
13467 * config/h8300/h8300.md: Likewise.
13469 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
13471 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
13472 the old, removed AAA_standards fix.
13473 * fixinc/fixincl.x: Rebuilt.
13475 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
13477 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
13478 atexit call in crtbegin, hooked in after call to frame_dummy;
13479 register EH before registering __fini__start.
13481 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
13483 * config/rs6000/altivec.h: Remove spurious semicolons.
13485 2002-01-27 Kazu Hirata <kazu@hxi.com>
13487 * config/h8300/h8300.md: Replace dead bit extraction patterns
13488 with ones that work.
13490 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13492 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
13493 if not STRICT_ALIGNMENT.
13494 * rtl.h (MEM_ALIGN): Likewise.
13496 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
13498 * doc/invoke.texi (-fdump-translation-unit): Revert this
13499 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
13501 2002-01-27 Kazu Hirata <kazu@hxi.com>
13503 * config/h8300/h8300.md (define_constants): New.
13504 (anonymous patterns) Use defined constants appropriately.
13506 2002-01-27 Kazu Hirata <kazu@hxi.com>
13508 * config/h8300/h8300.c (function_arg): Remove redundant code.
13510 2002-01-26 Richard Henderson <rth@redhat.com>
13512 * sched-deps.c (reg_pending_uses_head): New.
13513 (reg_pending_barrier): Rename from reg_pending_sets_all.
13514 (find_insn_list): Don't mark inline.
13515 (find_insn_mem_list): Remove.
13516 (add_dependence_list, add_dependence_list_and_free): New.
13517 (flush_pending_lists): Replace only_write param with separate
13518 for_read and for_write parameters. Update all callers. Use
13519 add_dependence_list_and_free.
13520 (sched_analyze_1): Do not add reg dependencies here; just set
13521 the pending bits. Use add_dependence_list.
13522 (sched_analyze_2): Likewise.
13523 (sched_analyze_insn): Replace schedule_barrier_found with
13524 reg_pending_barrier. Add all dependencies for pending reg
13525 uses, sets, and clobbers.
13526 (sched_analyze): Don't add reg dependencies for calls, just
13527 set pending bits. Use regs_invalidated_by_call. Treat
13528 sched_before_next_call as a normal list, not a fake insn.
13529 (init_deps): No funny init for sched_before_next_call.
13530 (free_deps): Free pending mems lists. Don't zero reg_last.
13531 (init_deps_global): Init reg_pending_uses.
13532 (finish_deps_global): Free it.
13533 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
13534 (find_insn_mem_list): Remove.
13535 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
13536 (propagate_deps): Use them. Zero temp mem lists.
13538 2002-01-26 Richard Henderson <rth@redhat.com>
13540 * Makefile.in (CRTSTUFF_CFLAGS): New.
13541 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
13542 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
13543 crtstuff.c instead of alpha assembly version.
13544 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
13545 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
13546 not FORCE_{INIT,FINI}_SECTION_ALIGN.
13547 (__do_global_dtors_aux): Mark used.
13548 (frame_dummy, __do_global_ctors_aux): Mark used.
13549 (fini_dummy, init_dummy): Remove.
13551 * config/alpha/crtbegin.asm: Remove file.
13552 * config/alpha/crtend.asm: Remove file.
13553 * config/alpha/t-crtbe: Remove file.
13554 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
13555 (LINK_EH_SPEC): New.
13557 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
13558 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
13559 calling constructors.
13560 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
13562 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
13563 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
13564 CRT_END_INIT_DUMMY hack.
13565 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
13566 FORCE_{INIT,FINI}_SECTION_ALIGN.
13568 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
13569 FORCE_{INIT,FINI}_SECTION_ALIGN.
13571 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
13572 invocation sequence.
13573 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
13575 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
13576 (FORCE_CODE_SECTION_ALIGN): New.
13578 2002-01-26 Richard Henderson <rth@redhat.com>
13580 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
13582 2002-01-26 Richard Henderson <rth@redhat.com>
13584 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
13585 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
13587 2002-01-26 Kazu Hirata <kazu@hxi.com>
13589 * config/h8300/h8300.md: Remove bit extraction patterns that
13590 cannot be triggered.
13591 Restrict each bit extraction pattern to a variant on which the
13594 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
13596 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
13598 2002-01-26 Kazu Hirata <kazu@hxi.com>
13600 * config/h8300/h8300.md: Remove bit test patterns that cannot
13602 Restrict each bit test pattern to a variant on which the
13605 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13607 * builtins.c (expand_builtin_strncat): Remove redundant check for
13610 2002-01-25 David O'Brien <obrien@FreeBSD.org>
13612 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
13614 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
13617 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
13619 * dbxout.c (dbxout_init): Use assemble_name rather than just
13620 stripping off the first character.
13621 (dbxout_source_file): Likewise.
13623 2002-01-25 DJ Delorie <dj@redhat.com>
13625 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
13626 using rtx_equal_p, not by comparing pointers.
13628 2002-01-25 Steve Ellcey <sje@cup.hp.com>
13630 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
13631 for PIC_OFFSET_TABLE_REGNUM.
13632 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
13634 2002-01-25 David O'Brien <obrien@FreeBSD.org>
13636 * config.gcc (x86_64-*-freebsd*): New target.
13637 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
13639 (i[34567]86-*-freebsd*): Don't include svr4.h.
13640 * config/i386/freebsd64.h: New file.
13642 2002-01-25 Douglas B Rupp <rupp@gnat.com>
13644 * config/alpha/x-vms (version): Make static.
13646 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
13647 in previous checkin.
13649 * Makefile.in (install-headers-cp): New target.
13650 * config.gcc (alpha-dec-*vms*): Install headers with
13653 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
13655 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
13658 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13660 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
13661 of compare_tree_int.
13662 (expand_builtin_strncat): Likewise.
13663 * c-decl.c (finish_struct): Use tree_low_cst.
13664 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
13665 * tree.c (compare_tree_int): Likewise.
13667 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
13669 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
13670 adjustments even if they are implemented by more than two insns.
13672 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
13674 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
13675 * df.h (struct ref): Kill B.
13676 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
13678 * basic-block.h (PROP_EQUAL_NOTES): New flag.
13679 * flow.c (propagate_one_insn): Use it.
13680 (mark_used_regs): Handle NIL.
13682 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
13684 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
13687 2002-01-25 David Edelsohn <edelsohn@gnu.org>
13689 * rs6000.md (prefetch): Make address V4SI mode so that the address
13690 is restricted to legitimate form for instruction.
13692 2002-01-25 Bob Wilson <bob.wilson@acm.org>
13694 * doc/install.texi (xtensa-*-elf): New target.
13695 (xtensa-*-linux*): New target.
13696 * doc/contrib.texi: Add myself.
13698 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
13700 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
13701 purpose register to hold an SImode (or smaller) value.
13703 2002-01-25 Jakub Jelinek <jakub@redhat.com>
13705 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
13707 * crtstuff.c: Likewise.
13709 2002-01-25 Kazu Hirata <kazu@hxi.com>
13711 * config/h8300/h8300.md (negation patterns): Tighten
13712 predicates to register_operand.
13714 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
13716 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
13719 * builtins.c (expand_builtin_prefetch): Same.
13721 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13723 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
13726 2002-01-24 Kazu Hirata <kazu@hxi.com>
13728 * config/h8300/h8300.c (print_operand): Remove support for
13729 operand character 'A'.
13730 * config/h8300/h8300.md (three anonymous patterns): Replace
13731 operand character 'A' with either 'T' or 'S'.
13733 2002-01-24 Kazu Hirata <kazu@hxi.com>
13735 * config/h8300/h8300.c (print_operand): Remove support for
13736 operand character 'U'.
13738 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
13740 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
13742 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
13744 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
13745 values to be assigned to the stack pointer.
13747 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
13749 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
13750 to const_double needs to be done right for big-endian systems.
13752 2002-01-24 Jason Merrill <jason@redhat.com>
13755 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
13756 to can_throw_internal.
13758 2002-01-23 Richard Henderson <rth@redhat.com>
13760 * fold-const.c (fold): Change UINT_MAX test to check vs precision
13761 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
13763 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13765 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
13766 (symGOT2reg): Use them, then set as GOT value as unchanging.
13767 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
13768 as a temporary, if possible.
13769 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
13770 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
13772 2002-01-23 Kazu Hirata <kazu@hxi.com>
13774 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
13775 accept to accept 0x80 as operands[2].
13777 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13779 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
13781 2002-01-23 Richard Henderson <rth@redhat.com>
13783 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
13785 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
13787 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
13788 (parmlist_or_identifiers_1): Verify that only a parmlist follows
13791 2002-01-23 Richard Henderson <rth@redhat.com>
13793 * expr.c (move_by_pieces_1): Extend size before negation.
13795 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
13796 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
13797 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
13798 * config/m68k/t-m68kelf: Likewise.
13800 2002-01-23 Bob Wilson <bob.wilson@acm.org>
13802 * config/xtensa/elf.h: New file.
13803 * config/xtensa/lib1funcs.asm: New file.
13804 * config/xtensa/lib2funcs.S: New file.
13805 * config/xtensa/linux.h: New file.
13806 * config/xtensa/t-xtensa: New file.
13807 * config/xtensa/xtensa-config.h: New file.
13808 * config/xtensa/xtensa-protos.h: New file.
13809 * config/xtensa/xtensa.c: New file.
13810 * config/xtensa/xtensa.h: New file.
13811 * config/xtensa/xtensa.md: New file.
13812 * config.gcc (xtensa-*-elf*): New target.
13813 (xtensa-*-linux*): New target.
13814 * cse.c (canon_hash): Compare rtx pointers instead of register
13815 numbers. This is required for the Xtensa port.
13816 * integrate.c (copy_insn_list): Handle case where the static
13817 chain is in memory and the memory address has to be copied to
13819 * doc/invoke.texi (Option Summary): Add Xtensa options.
13820 (Xtensa Options): New node.
13821 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
13823 2002-01-23 Zack Weinberg <zack@codesourcery.com>
13825 * diagnostic.c (internal_error): Do ICE suppression only
13826 when ENABLE_CHECKING is not defined.
13828 * c-typeck.c (require_complete_type): Return error_mark_node
13829 if type is error_mark_node.
13831 2002-01-23 Janis Johnson <janis187@us.ibm.com>
13833 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
13834 -Os and issue a warning.
13836 2002-01-23 Zack Weinberg <zack@codesourcery.com>
13838 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
13839 current (lack of) need for host configuration by hand.
13841 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
13842 references. Documentation of some target macros moved from
13843 hostconfig.texi to tm.texi.
13845 2002-01-23 Will Cohen <wcohen@redhat.com>
13847 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
13850 2002-01-23 Kazu Hirata <kazu@hxi.com>
13852 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
13855 2002-01-23 Jason Merrill <jason@redhat.com>
13857 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
13859 * function.c (assign_parms): Don't put args of inline functions
13860 into registers when not optimizing.
13862 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
13864 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
13865 (prologue_use): New pattern.
13866 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
13867 preference to gen_rtx_USE.
13868 (thumb_expand_prologue): Use gen_prologue_use in preference to
13870 (thumb_expand_epilogue): Use gen_prologue_use in preference to
13873 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
13875 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
13877 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
13880 * doc/extend.texi: Correct documentation of __alignof__.
13882 2002-01-22 Zack Weinberg <zack@codesourcery.com>
13884 * params.h: Rename arguments of DEFPARAM so that it will be
13885 recognized as a translation keyword.
13887 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13889 * extend.texi: Document altivec functions.
13890 Fix N-bit adjectives in X86 builtin documentation.
13892 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
13894 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
13895 auto_inc_dec values.
13897 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
13899 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
13901 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
13903 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
13905 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
13907 2002-01-22 Richard Henderson <rth@redhat.com>
13909 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
13910 copy_insn not copy_rtx.
13912 2002-01-23 Alan Modra <amodra@bigpond.net.au>
13914 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
13915 "nonzero" as that might add "1" bits. Ensure "constop" is
13916 properly sign extened.
13917 (force_to_mode): Tweak for sign extended constop.
13919 2002-01-22 Richard Henderson <rth@redhat.com>
13921 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
13922 for_each_rtx instead of assuming we're already looking at the MEM.
13923 (split_small_symbolic_mem_operand): Likewise.
13924 * config/alpha/alpha.h (PREDICATE_CODES): Update.
13925 * config/alpha/alpha.md (small symbolic memory splitters): Update.
13927 2002-01-22 Richard Henderson <rth@redhat.com>
13929 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
13930 sequence number for the literal.
13931 (divmoddi_internal_er): Likewise.
13933 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13936 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
13937 in LIBICONV variable.
13938 * configure: Regenerated.
13940 2002-01-22 Krister Walfridsson <cato@df.lth.se>
13942 * dependence.c (build_def_use): Remove array_idx.
13944 * dwarfout.c (last_filename): Remove.
13945 (output_compile_unit_die): Remove last_filename.
13947 2002-01-22 Roger Sayle <roger@eyesopen.com>
13948 Richard Henderson <rth@redhat.com>
13951 * fold-const.c (fold): Optimize unsigned comparisons against
13952 UINT_MAX (and similar unsigned constants).
13954 2002-01-22 Janis Johnson <janis187@us.ibm.com>
13956 * Makefile.in (loop.o): Depend on OPTABS_H.
13957 * loop.c (emit_prefetch_instructions): Check the prefetch operand
13958 against the predicate.
13961 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
13962 for the address operand.
13964 2002-01-22 Richard Henderson <rth@redhat.com>
13966 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
13968 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13971 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
13972 preprocessor flags.
13974 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
13976 * config.gcc (x86_64-*-netbsd*): New target.
13977 * config/i386/netbsd64.h: New file.
13979 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13981 * regrename.c (kill_value): Fix typo.
13983 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13985 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
13987 * config/rs6000/rs6000.h: Same.
13989 * function.c (instantiate_virtual_regs): Remove
13990 STARTING_FRAME_PHASE.
13991 (assign_stack_local_1): Same.
13992 Calculate frame phase.
13994 2002-01-22 Nick Clifton <nickc@redhat.com>
13996 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
13997 variable declaration to outer scope in order to simplify
13999 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14000 arm_hard_regno_mode_ok.
14001 * config/arm/arm-protos.h: Add a prototype for
14002 arm_hard_regno_mode_ok.
14003 * config/arm/arm.c (soft_df_operand): Remove now redundant
14004 check for DImode values using IP_REGNUM.
14005 (nonimmediate_soft_df_operand): Remove now redundant check for
14006 DImode values using IP_REGNUM.
14007 (arm_hard_regno_mode_ok): New function. New check: make sure
14008 that DImode values are not stored in IP_REGNUM.
14010 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14012 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14014 2002-01-22 Jason Merrill <jason@redhat.com>
14016 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14017 consistency if this COMPOUND_STMT is scoped.
14019 2002-01-22 Kazu Hirata <kazu@hxi.com>
14021 * predict.c: Fix formatting.
14022 * print-tree.c: Likewise.
14023 * protoize.c: Likewise.
14024 * real.h: Likewise.
14026 * sbitmap.h: Likewise.
14027 * scan.c: Likewise.
14028 * sched-deps.c: Likewise.
14029 * sched-vis.c: Likewise.
14030 * sdbout.c: Likewise.
14031 * sibcall.c: Likewise.
14033 * ssa-ccp.c: Likewise.
14034 * ssa-dce.c: Likewise.
14035 * stmt.c: Likewise.
14036 * stor-layout.c: Likewise.
14037 * system.h: Likewise.
14039 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14041 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14042 if fits in bounds of base type.
14044 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14045 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14046 (add_bound_info, default): If can't find a context, make a
14048 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14050 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14052 * c-typeck.c (parser_build_binary_op): If result from
14053 build_binary_op is ERROR_MARK just return error_mark_node without
14054 further processing.
14056 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14058 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14059 Split a.out-specific bits into...
14060 * config/netbsd-aout.h: ...this.
14061 * config/netbsd-elf.h: New file.
14062 * config/alpha/netbsd-elf.h: Remove.
14063 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14064 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14065 (STARTFILE_SPEC): Remove redundant definition.
14066 (ENDFILE_SPEC): Likewise.
14067 (LINK_SPEC): Likewise.
14068 (CPP_SPEC): Likewise.
14069 (ASM_SPEC): Likewise.
14070 (LIB_SPEC): Likewise.
14071 (SWITCH_TAKES_ARG): Likewise.
14072 (TARGET_MEM_FUNCTIONS): Likewise.
14073 (CPP_PREDEFINES): Redefine.
14074 (ASM_FINAL_SPEC): Remove redefinition.
14075 (ASM_COMMENT_START): Redefine.
14076 (FUNCTION_PROFILER): Define.
14077 (TARGET_VERSION): Redefine.
14078 Comment and formatting cleanup.
14079 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14080 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14081 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14082 big- or little-endian.
14083 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14084 * config.gcc (*-*-netbsd*): Add definitions common to all
14086 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14087 gnu_ld definitions. Add netbsd-elf.h to and remove
14088 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14089 tmake_file, and don't lose previous tmake_file contents.
14090 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14091 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14092 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14093 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14094 (mipsel-*-netbsd*): Rename this to...
14095 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14096 mips/little.h to tm_file for mips*el-*.
14097 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14098 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14099 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14101 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14103 * pa-protos.h (reg_before_reload_operand): New function prototype.
14104 * pa.c (reg_before_reload_operand): New function implementation.
14105 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14106 contraints to "*m".
14108 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14110 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14112 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14114 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14115 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14116 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14117 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14118 (ENDFILE_SPEC): Undefine.
14119 (STARTFILE_SPEC): Redefine for PA.
14121 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14123 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14125 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14127 * config.gcc: Add entries to supported PowerPC --with-cpu
14130 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14132 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14133 true for 64-bit mode only SSE registers in 32-bit mode.
14135 2002-01-21 Kazu Hirata <kazu@hxi.com>
14137 * unwind-dw2.c: Fix formatting.
14138 * unwind-dw2-fde.c: Likewise.
14139 * unwind-dw2-fde.h: Likewise.
14140 * unwind-pe.h: Likewise.
14141 * varasm.c: Likewise.
14142 * varray.h: Likewise.
14144 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
14146 Remove workaround for register stack overwrite bug in mmix.
14147 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14148 support for TARGET_REG_STACK_FILL_BUG.
14149 * config/mmix/mmix.h: Remove member has_call_without_parameters.
14150 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14152 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14153 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14154 -mno-reg-stack-fill-bug-workaround.
14155 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14156 machine member has_call_without_parameters.
14157 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14158 -mreg-stack-fill-bug-workaround and
14159 -mno-reg-stack-fill-bug-workaround.
14160 (MMIX Options): Ditto.
14162 2002-01-21 Kazu Hirata <kazu@hxi.com>
14164 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14166 Remove redundant code.
14168 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
14170 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14171 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14172 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14173 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14174 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14175 out target macro definitions and non-target-specific comments
14176 mostly taken from old versions of the manual.
14178 2002-01-20 Kazu Hirata <kazu@hxi.com>
14180 * config/h8300/h8300.h: Fix comment formatting.
14181 * config/ia64/aix.h: Likewise.
14182 * config/ia64/ia64-protos.h: Likewise.
14183 * config/ia64/ia64.c: Likewise.
14184 * config/ia64/ia64.h: Likewise.
14185 * config/ia64/ia64intrin.h: Likewise.
14186 * config/ia64/linux.h: Likewise.
14187 * config/ia64/unwind-aix.c: Likewise.
14188 * config/ia64/unwind-ia64.c: Likewise.
14190 2002-01-20 Kazu Hirata <kazu@hxi.com>
14192 * config/h8300/h8300.c: Revise comments about shift code.
14194 2002-01-20 Kazu Hirata <kazu@hxi.com>
14196 * config/h8300/h8300.c (function_arg): Update a comment.
14198 2002-01-20 Kazu Hirata <kazu@hxi.com>
14200 * config/h8300/h8300.md: Update the comments at the beginning
14203 2002-01-20 Kazu Hirata <kazu@hxi.com>
14205 * config/i370/i370.c: Fix comment formatting.
14206 * config/i370/i370.h: Likewise.
14207 * config/i370/i370.md: Likewise.
14208 * config/i370/linux.h: Likewise.
14210 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14212 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14214 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14215 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14216 in incomplete case.
14218 2002-01-20 Graham Stott <grahams@redhat.com>
14220 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14222 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
14224 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14226 2002-01-19 Tom Rix <trix@redhat.com>
14228 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14230 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
14232 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
14234 * function.c (assign_stack_local_1): Adjust x_frame_offset with
14235 STARTING_FRAME_PHASE.
14236 (STARTING_FRAME_PHASE): New.
14237 (instantiate_virtual_regs): Check saneness of
14238 STARTING_FRAME_PHASE.
14240 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
14242 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14244 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
14246 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
14248 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
14249 be used for bootstrapping GCC 3.0.
14251 2002-01-18 Kazu Hirata <kazu@hxi.com>
14253 * config/h8300/h8300.md: Fix an insn length.
14255 2002-01-18 Kazu Hirata <kazu@hxi.com>
14257 * bitmap.h: Fix comment formatting.
14258 * combine.c: Likewise.
14259 * cppfiles.c: Likewise.
14260 * c-pragma.h: Likewise.
14261 * c-typeck.c: Likewise.
14263 * dwarf2out.c: Likewise.
14264 * function.c: Likewise.
14266 * genattrtab.c: Likewise.
14267 * gthr-win32.h: Likewise.
14268 * haifa-sched.c: Likewise.
14269 * predict.c: Likewise.
14270 * rtlanal.c: Likewise.
14272 * unwind-dw2-fde.h: Likewise.
14273 * unwind-pe.h: Likewise.
14274 * vmsdbgout.c: Likewise.
14276 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14278 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
14279 if type_required and passed decl.
14281 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
14283 * config.gcc (cpu_type): Include altivec.h in powerpc
14287 * config/rs6000/altivec.h: New.
14289 2002-01-17 David Edelsohn <edelsohn@gnu.org>
14291 * doc/install.texi (*-ibm-aix*): Update assembler and exception
14292 handling information.
14293 * doc/trouble.texi (Interoperation): Add libstdc++ information
14295 (Misunderstandings): Add template instantiation and static template
14296 member information for AIX.
14298 2002-01-17 Jason Merrill <jason@redhat.com>
14300 * dbxout.c (dbxout_type): Support const and volatile.
14302 * except.c (add_partial_entry): Remove backwards compatibility code.
14303 (end_protect_partials): Likewise.
14305 2002-01-17 Jakub Jelinek <jakub@redhat.com>
14307 * config/ia64/ia64.md (prologue_use): New.
14308 * config/ia64/ia64.c (ia64_expand_prologue): Use
14309 gen_prologue_use instead of gen_rtx_USE.
14310 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
14311 as CODE_FOR_pred_rel_mutex.
14312 (ia64_sched_reorder2): Likewise.
14314 2002-01-16 Eric Christopher <echristo@redhat.com>
14316 * config/mips/r3900.h: Reformat.
14317 (SUBTARGET_CPP_SIZE_SPEC): Remove.
14318 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
14319 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
14320 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
14321 * config/mips/t-elf: Remove mips3 multilib.
14323 2002-01-16 H.J. Lu <hjl@gnu.org>
14325 * config/mips/linux.h: Include "mips/abi64.h".
14327 2002-01-16 H.J. Lu <hjl@gnu.org>
14329 * config/mips/t-linux: New.
14331 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
14333 * config/mips/linux.h: Don't include "gofast.h".
14334 (INIT_SUBTARGET_OPTABS): Removed.
14336 2002-01-16 Kazu Hirata <kazu@hxi.com>
14338 * config/h8300/h8300-protos.h: Replace emit_a_shift with
14340 * config/h8300/h8300.c: Likewise.
14341 * config/h8300/h8300.md: Likewise.
14343 2002-01-16 Kazu Hirata <kazu@hxi.com>
14345 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
14346 spaces after an opcode name.
14347 (pushqi1_h8300hs): Likewise.
14348 (pushhi1_h8300hs): Likewise.
14350 2002-01-16 Kazu Hirata <kazu@hxi.com>
14352 * doc/extend.texi: Replace "option" with "attribute"
14355 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14357 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
14358 (and:DI () (const_int -8)).
14359 (split_small_symbolic_mem_operand): Split
14360 (mem (and:DI () (const_int -8)).
14362 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14365 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
14366 same way as TYPE_IMUL.
14367 (ultrasparc_sched_reorder): Likewise.
14368 * config/sparc/sparc.md (type): Add comment to update
14369 ultrasparc_sched_reorder when making changes.
14371 2002-01-16 Kazu Hirata <kazu@hxi.com>
14373 * doc/invoke.texi: Change the dump file name of block
14374 reordering pass from 28.bbro to 29.bbro.
14375 Mention -dk option.
14377 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
14379 * i386.md (minsf splitter): Fix pasto.
14381 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14383 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
14384 to frame pointer initialisation instruction.
14385 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
14386 initialisation instruction.
14387 (soft_df_operand): Do not accept the IP register.
14388 (nonimmediate_soft_df_operand): Do not accept the IP register.
14390 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14393 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
14394 MASK_V8 being both set.
14396 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
14398 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
14399 insn for GOT register; add REG_MAYBE_DEAD notes instead.
14400 config/s390/s390.md (call, call_value): Add GOT register to
14401 CALL_INSN_FUNCTION_USAGE where needed.
14402 (call_exp, call_value_exp): New.
14404 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14406 * config/arm/arm.c: General formatting tidy up.
14408 2002-01-16 Graham Stott <grahams@redhat.com>
14410 * calls.c (try_to_integrate): Use "(size_t)" intermediate
14411 cast and when casting an integer literal to "rtx" pointer.
14412 (expand_call): Likewise.
14413 * flow.c (try_pre_increment): Likewise.
14414 (find_use_as_address): Likewise.
14415 * integrate.c (expand_iline_function): Likewise.
14416 * regmove.c (try_auto_increment): Likewise.
14418 2002-01-16 Graham Stott <grahams@redhat.com>
14420 * sched-rgn.c (passed): Use sbitmap_free.
14421 (header): Likewise.
14423 (in_queue): Likewise.
14424 (in_stack): Likewise.
14426 2002-01-15 Eric Christopher <echristo@redhat.com>
14428 * flow.c (propagate_one_insn): Change to use fatal_insn.
14430 2002-01-15 Kazu Hirata <kazu@hxi.com>
14432 * expmed.c (extract_fixed_bit_field): Remove unused code.
14433 * system.h: Poison SLOW_ZERO_EXTEND.
14434 * doc/tm.texi: Remove.
14435 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
14436 * config/arm/arm.h: Likewise.
14437 * config/avr/avr.h: Likewise.
14438 * config/clipper/clipper.h: Likewise.
14439 * config/convex/convex.h: Likewise.
14440 * config/d30v/d30v.h: Likewise.
14441 * config/dsp16xx/dsp16xx.h: Likewise.
14442 * config/elxsi/elxsi.h: Likewise.
14443 * config/fr30/fr30.h: Likewise.
14444 * config/h8300/h8300.h: Likewise.
14445 * config/i370/i370.h: Likewise.
14446 * config/i386/i386.h: Likewise.
14447 * config/m68k/m68k.h: Likewise.
14448 * config/mips/mips.h: Likewise.
14449 * config/ns32k/ns32k.h: Likewise.
14450 * config/pdp11/pdp11.h: Likewise.
14451 * config/pj/pj.h: Likewise.
14452 * config/s390/s390.h: Likewise.
14453 * config/sh/sh.h: Likewise.
14454 * config/stormy16/stormy16.h: Likewise.
14455 * config/v850/v850.h: Likewise.
14456 * config/vax/vax.h: Likewise.
14457 * config/we32k/we32k.h: Likewise.
14459 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14461 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
14462 (altivec_lvsl): Change constraint to b.
14463 (altivec_lvsr): Same.
14464 (altivec_lvebx): Same.
14465 (altivec_lvehx): Same.
14466 (altivec_lvewx): Same.
14467 (altivec_lvxl): Same.
14468 (altivec_lvx): Same.
14469 (altivec_stvx): Add parallel.
14470 (altivec_stvxl): Same.
14471 (altivec_stvehx): Same.
14472 (altivec_stvebx): Same.
14473 (altivec_stvebx): Same.
14475 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14477 * config.gcc: Change altivec.h to altivec-defs.h.
14479 * config/rs6000/altivec.h: Delete.
14481 * config/rs6000/altivec-defs.h: Add.
14483 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14485 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
14488 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
14489 less than or equal to eight bytes.
14491 * vax.md (andsi3): Remove constraints and change SET destination
14492 operand type to nonimmediate_operand.
14493 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
14494 when it is a CONST_INT.
14496 2002-01-15 Jason Merrill <jason@redhat.com>
14498 * c-common.def (FILE_STMT): New code.
14499 * c-common.c (statement_code_p): It's a statement.
14500 * c-common.h (stmt_tree_s): Add x_last_filename.
14501 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
14502 (last_expr_filename): New macro.
14503 * c-semantics.c (begin_stmt_tree): Initialize it.
14504 (add_stmt): If the filename changed, also insert a
14506 (expand_stmt): Handle seeing one.
14508 2002-01-15 Eric Christopher <echristo@redhat.com>
14510 * flow.c (propagate_one_insn): Add error message and print out
14511 insn for debugging.
14513 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
14515 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
14516 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
14517 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
14518 TRAMPOLINE_ALIGNMENT.
14519 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
14521 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
14522 PCC_BITFIELD_TYPE_MATTERS.
14523 * config/interix.h (STDC_VALUE): Remove. Use
14524 STDC_0_IN_SYSTEM_HEADERS.
14525 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
14526 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
14527 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
14529 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
14531 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
14532 not work on this platform currently.
14534 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
14536 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
14537 readonly_warning in _().
14539 2002-01-15 Douglas B Rupp <rupp@gnat.com>
14541 * gcc.c (delete_if_ordinary): Backout previous change.
14543 2002-01-15 Kazu Hirata <kazu@hxi.com>
14545 * config/h8300/h8300.c (print_operand): Remove support for
14546 unused operand characters.
14548 * read-rtl.c: Fix formatting.
14549 * real.c: Likewise.
14550 * recog.c: Likewise.
14551 * regclass.c: Likewise.
14552 * regmove.c: Likewise.
14553 * reg-stack.c: Likewise.
14554 * reload1.c: Likewise.
14555 * rtlanal.c: Likewise.
14557 2002-01-15 Kazu Hirata <kazu@hxi.com>
14559 * config/i386/i386.c: Fix formatting.
14561 2002-01-15 Jakub Jelinek <jakub@redhat.com>
14563 * c-typeck.c (process_init_element): Don't save_expr
14564 COMPOUND_LITERAL_EXPR if just its initializer will be used.
14566 2002-01-15 David Edelsohn <edelsohn@gnu.org>
14568 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
14569 emit optional traceback table if optimize_size or TARGET_ELF.
14570 * config/rs6000/rs6000.md (prefetch): New.
14572 2002-01-15 Andreas Jaeger <aj@suse.de>
14574 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
14576 2002-01-15 Kazu Hirata <kazu@hxi.com>
14578 * mips-tfile.c: Fix formatting.
14580 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
14582 * unroll.c (final_reg_note_copy): Fix previous commit.
14584 2002-01-14 Kazu Hirata <kazu@hxi.com>
14586 * config/h8300/h8300-protos.h: Remove the prototype for
14588 * config/h8300/h8300.c (eq_operator): Remove.
14590 2002-01-14 Richard Henderson <rth@redhat.com>
14592 * config/i386/i386.md (prefetch): Tidy.
14593 (prefetch_3dnow): Fix locality operand.
14595 2002-01-14 Richard Henderson <rth@redhat.com>
14597 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
14598 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
14600 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
14602 * reload1.c (reload_combine): Pass reg_sum replacement through
14603 copy_rtx in loop performing multiple changes.
14605 2002-01-14 Jakub Jelinek <jakub@redhat.com>
14607 * except.c (remove_unreachable_regions): New.
14608 (free_eh_status): Clear exception_handler_labels.
14609 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
14610 (find_exception_handler_labels): Don't add the same label more than
14612 (remove_exception_handler_label): Don't die if
14613 find_exception_handler_labels hasn't been called for the current
14616 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
14618 * toplev.c (rest_of_compilation): Rebuild jump labels after
14621 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
14623 * doc/extend.texi: Move documentation of X86 built-in functions
14625 * doc/invoke.texi: From here.
14626 * doc/sourcebuild.texi: Document location of documentation for
14627 machine built-in functions.
14629 2002-01-13 Christopher Faylor <cgf@redhat.com>
14631 * cppfiles.c (TEST_THRESHOLD): New macro.
14632 (SHOULD_MMAP): Ditto.
14633 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
14636 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
14638 * unroll.c (final_reg_note_copy): Properly handle
14640 (unroll_loops): Fix LOOP_CONDITION heuristics.
14642 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
14644 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
14645 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
14647 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
14649 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
14652 2002-01-14 Tom Rix <trix@redhat.com>
14654 * config/rs6000/rs6000.md: Fix typo with sradi.
14656 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
14658 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
14659 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
14660 (clrstrdi, clrstrsi): Adapt callers.
14662 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
14664 (movti splitter): Never use register 0 as base register.
14666 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14668 * combine.c (simplify_shift_const): Always generate new rtx
14669 for shift expression instead of reusing given expression.
14671 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14673 * config/alpha/alpha.c (alpha_expand_mov): Don't call
14674 alpha_legitimize_address unless mode is Pmode.
14676 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
14678 * doc/md.texi (Modifiers): Document the '*' constraint for the
14681 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
14682 * doc/extend.texi (Function Attributes): 'interrupt' is valid
14685 2002-01-13 Richard Henderson <rth@redhat.com>
14687 * reload.c (find_reloads): Use a hard reg destination as reload reg
14688 for an input reload of the source.
14690 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14692 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
14695 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
14697 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
14698 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
14700 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
14702 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14704 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
14706 2002-01-12 Tom Rix <trix@redhat.com>
14708 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
14711 2002-01-12 Richard Henderson <rth@redhat.com>
14713 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
14715 * doc/invoke.texi: Update Alpha options.
14717 * doc/invoke.texi: Update i386 built-in function lists.
14719 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
14721 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
14722 referencing outside.
14724 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14726 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
14727 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
14728 offsets, and change line folding.
14729 * optabs.c (expand_binop): Remove warnings.
14730 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
14732 2002-01-12 Graham Stott <grahams@redhat.com>
14734 * attribs.c (handle_deprecated_attribute): constify WHAT.
14735 * diagnostic.c (warn_deprecated_use): Add braces, fixes
14736 dangling else warning and constify WHAT.
14737 * except.h (struct function, struct inline_remap): Move
14738 struct tag forward defs before all prototypes.
14739 (duplicate_eh_regions): Whitespace.
14741 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
14743 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14744 MODE_BASE_REG_CLASS.
14745 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
14747 2002-01-12 Richard Henderson <rth@redhat.com>
14749 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
14750 (ix86_expand_vector_move): New.
14751 (bdesc_2arg): Remove andps, andnps, orps, xorps.
14752 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
14753 Remove old prefetch builtins. Special case the logicals removed above.
14754 (ix86_expand_builtin): Likewise.
14755 (safe_vector_operand): Use V4SFmode, not TImode.
14756 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
14757 (ix86_expand_timode_binop_builtin): New.
14758 * config/i386/i386-protos.h: Update.
14759 * config/i386/i386.h (enum ix86_builtins): Update.
14760 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
14761 Use ix86_expand_vector_move in vector move expanders.
14762 (movti_internal, movti_rex64): Add xorps alternative.
14763 (sse_clrv4sf): Rename and adjust from sse_clrti.
14764 (prefetch): Don't work so hard.
14765 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
14766 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
14767 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
14769 2002-01-11 Richard Henderson <rth@redhat.com>
14771 * config/i386/mmintrin.h: New file.
14772 * config/i386/xmmintrin.h: New file.
14773 * config.gcc (i?86-*-*): Add extra_headers.
14774 * simplify-rtx.c (simplify_unary_operation): Handle saturating
14776 (simplify_binary_operation): Handle saturating arithmetic codes.
14777 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
14778 not the lowpart subreg.
14779 (ix86_expand_builtin): Return a TImode dummy register instead of 0
14781 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
14783 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14785 * conflict.c (conflict_graph_compute): Free regsets when finished.
14786 * ssa.c (compute_coalesced_reg_partition): Likewise.
14788 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14790 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
14791 every where we allocate a register.
14793 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14795 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
14796 * lcm.c (compute_earliest, compute_farthest): Likewise.
14798 2002-01-11 Janis Johnson <janis187@us.ibm.com>
14800 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
14802 2002-01-11 Janis Johnson <janis187@us.ibm.com>
14804 * doc/rtl.texi (Insns): Fix 2 typos.
14806 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
14808 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
14809 options. Use @table @gcctabopt for MMIX options. Add index
14810 entries for MMIX options. Start new paragraph with first
14811 heading of the machine-dependent options.
14813 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
14816 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
14817 * combine.c (force_to_mode): Same.
14818 * reload1.c (clear_reload_reg_in_use): Same.
14820 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
14822 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
14825 2002-01-11 Andreas Jaeger <aj@suse.de>,
14826 Brad Lucier <lucier@math.purdue.edu>
14828 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
14831 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
14833 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
14834 Protect with IN_LIBGCC.
14835 (LINK_EH_SPEC): Add required trailing space.
14837 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
14839 * c-tree.h: Move function declarations so that they are listed
14840 under the filename which contains them.
14841 (check_identifier, finish_decl_top_level,
14842 lookup_name_current_level_global, shadow_record_fields): Remove.
14844 2002-01-11 Andreas Jaeger <aj@suse.de>
14846 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
14849 2002-01-10 Richard Henderson <rth@redhat.com>
14851 * config/alpha/alpha.c (print_operand): Add 'J'.
14852 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
14853 new operand with the sequence number for the lituse. When splitting
14854 the insns, use gen_movdi_er_high_g and generate a sequence number.
14855 (gen_movdi_er_high_g): Print the sequence number if non-zero.
14857 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
14859 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
14860 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
14862 (altivec_expand_builtin): Same.
14863 (altivec_expand_stv_builtin): New.
14865 * config/rs6000/rs6000.h (rs6000_builtins): Same.
14867 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
14868 ("altivec_lvehx"): New.
14869 ("altivec_lvewx"): New.
14870 ("altivec_lvxl"): New.
14871 ("altivec_lvx"): New.
14872 ("altivec_stvx"): New.
14873 ("altivec_stvebx"): New.
14874 ("altivec_stvehx"): New.
14875 ("altivec_stvewx"): New.
14876 ("altivec_stvxl"): New.
14878 2002-01-10 Richard Henderson <rth@redhat.com>
14880 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
14881 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
14882 care not to delete instructions twice.
14884 2002-01-10 Zack Weinberg <zack@codesourcery.com>
14886 * toplev.c: Don't declare environ (it's not used anywhere).
14887 * configure.in: Don't check for declaration of environ.
14888 * config/i386/xm-mingw32.h: Don't #define environ.
14889 * config.in, configure: Regenerate.
14891 2002-01-10 Zack Weinberg <zack@codesourcery.com>
14893 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
14894 * configure: Regenerate.
14896 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
14897 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
14898 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
14900 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
14901 LIMITS_H_TEST here, not in m68k/x-next.
14902 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
14903 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
14905 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
14906 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
14907 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
14909 * config/i386/x-djgpp: Renamed i386/t-djgpp.
14910 * config/m88k/x-dolph: Renamed m88k/t-dolph.
14911 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
14912 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
14913 replacement of quadlib.asm with quadlib.c.
14915 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
14916 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
14917 config/rs6000/xm-beos.h: Delete file.
14919 * config.gcc: Update to match above changes.
14921 2002-01-10 Kazu Hirata <kazu@hxi.com>
14923 * config/h8300/h8300.h: Fix comment typos.
14924 * config/h8300/h8300.md: Likewise.
14925 * config/h8300/lib1funcs.asm: Likewise.
14927 2002-01-10 Dale Johannesen <dalej@apple.com>
14929 PR optimization/5269
14930 * unroll.c (precondition_loop_p): Make *increment be the correct
14931 sign when n_iterations known, to avoid confusing caller.
14933 2002-01-10 Kazu Hirata <kazu@hxi.com>
14935 * doc/extend.texi (deprecated): Fix a typo.
14937 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
14939 * basic-block.h (update_br_prob_note): Declare.
14940 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
14941 (try_forward_edges): Care negative frequencies and update note.
14942 (outgoing_edges_match): Tweek conditional merging heuristics.
14943 (try_crossjump_to_edge): use update_br_prob_note.
14944 * cfglayout.c (fixup_reorder_chain): Likewise.
14945 * cfrtl.c (update_br_prob_note): New.
14946 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
14948 * i386.c (ix86_decompose_address): Return -1 if address contains
14950 (legitimate_address_p): Require ix86_decompose_address to return 1.
14952 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
14953 (cprop_insn): Likewise.
14955 2002-01-10 Kazu Hirata <kazu@hxi.com>
14957 * toplev.c: Fix formatting.
14958 * tree.c: Likewise.
14959 * tree-dump.c: Likewise.
14960 * unroll.c: Likewise.
14961 * unwind-dw2.c: Likewise.
14962 * unwind-dw2-fde.c: Likewise.
14963 * unwind-dw2-fde-glibc.c: Likewise.
14964 * unwind-sjlj.c: Likewise.
14966 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
14968 * doc/invoke.texi: Document PDP-11 options.
14970 2002-01-10 Kazu Hirata <kazu@hxi.com>
14972 * config/h8300/h8300.h: Fix formatting.
14974 2002-01-10 Ira Ruben <ira@apple.com>
14976 Add __attribute__ ((deprecated)).
14977 * extend.texi: Document __attribute__ ((deprecated)).
14978 * invoke.texi: Document -Wno-deprecated-declarations.
14979 * testsuite/g++.dg/other/deprecated.C: New C++ test.
14980 * testsuite/gcc.dg/deprecated.c: New C test.
14981 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
14982 (c_common_attribute_table): Add "deprecated" entry.
14983 (handle_deprecated_attribute): New function.
14984 * c-decl.c (deprecated_states): New enum.
14985 deprecated_state: State of "deprecated" handling.
14986 (start_decl): Set deprecated_state based on attributes.
14987 (grokdeclarator): Test for deprecated uses, propagate attribute.
14988 * c-typeck.c (build_component_ref): Test for deprecated fields.
14989 (build_external_ref): Test for deprecated primaries.
14990 * diagnostic.c (warn_deprecated_use) New function to issue
14991 warnings about __attribute__ ((depricated)) references.
14992 * flags.h (warn_deprecated_decl): Extern declared for
14993 -W[no-]deprecated-declarations option.
14994 * print-tree.c (print_node): Show deprecated flag status.
14995 * toplev.c (warn_deprecated_decl): Defined.
14996 (W_options): Added "deprecated-declaration".
14997 * toplev.h (warn_deprecated_use): Extern declared.
14998 * tree.h (struct tree_common): Define deprecated_flag.
14999 (TREE_DEPRECATED): New macro to access flag.
15000 * cp/call.c (build_call): Test for deprecated calls.
15001 * cp/class.c (add_implicitly_declared_members): Set global
15002 flag to tell grokdeclarator to not issue deprecated warnings.
15003 * cp/cp-tree.h: Add extern for adding_implicit_members.
15004 * cp/decl.c (deprecated_states): New enum.
15005 (start_decl): Set deprecated_state based on attributes.
15006 (grokdeclarator): Test for deprecated uses, propagate attribute.
15007 * cp/lex.c (do_identifier): Test for deprecated primaries.
15008 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15010 2002-01-10 Ira Ruben <ira@apple.com>
15012 Fix to assign attributes to inline member functions.
15013 * cp/decl.c (start_method): Handle attrlist.
15015 2002-01-10 Kazu Hirata <kazu@hxi.com>
15017 * combine.c (expand_field_assignment): Use subreg_lsb().
15019 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15021 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15022 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15023 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15024 Recurse for any operand of AND as long as constant is non-zero.
15026 2002-01-10 Kazu Hirata <kazu@hxi.com>
15028 * config/h8300/h8300.md: Remove constraints from expanders.
15030 2002-01-10 Kazu Hirata <kazu@hxi.com>
15032 * varasm.c: Fix formatting.
15033 * varray.c: Likewise.
15034 * vmsdbgout.c: Likewise.
15035 * xcoffout.c: Likewise.
15037 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15039 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15040 update edge probabilities to match.
15042 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15044 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15046 * doc/languages.texi, doc/sourcebuild.texi: New files.
15047 * doc/configfiles.texi: Make a subsubsection. Update.
15048 * doc/configterms.texi: Add @node. Remove warning that this isn't
15049 instructions for building GCC.
15050 * doc/makefile.texi: Make a subsection.
15051 * doc/gccint.texi: Update.
15053 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15055 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15057 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15059 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15061 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15063 * optabs.c (expand_fix): Look for wider integer modes first.
15065 * i386.md (mov?f): Avoid the fake const double trick for medium
15067 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15068 (fop_df_4): Disable for SSE compilation.
15070 2002-01-10 Graham Stott <grahams@redhat.com>
15072 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15073 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15075 2002-01-10 Richard Henderson <rth@redhat.com>
15077 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15079 2002-01-10 Richard Henderson <rth@redhat.com>
15081 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15082 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15084 2002-01-10 Kazu Hirata <kazu@hxi.com>
15086 * combine.c (can_combine_p): Fix a comment typo.
15088 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15090 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15091 empty list correctly. Change loop index $t to $f for
15092 consistency with rest of Makefile.
15094 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15096 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15097 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15099 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15100 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15101 (altivec_init_builtins): Same.
15102 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15103 (altivec_expand_binop_builtin): Same.
15104 (altivec_expand_ternop_builtin): Same.
15107 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15108 ("altivec_vctuxs"): Fix typo.
15109 ("altivec_vnmsubfp"): Same.
15110 ("altivec_dssall"): New.
15111 ("altivec_mfvscr"): New.
15112 ("altivec_dss"): New.
15113 ("altivec_lvsl"): New.
15114 ("altivec_lvsr"): New.
15115 ("altivec_dstt"): New.
15116 ("altivec_dstst"): New.
15117 ("altivec_dststt"): New.
15118 ("altivec_dst"): New.
15120 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15121 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15123 2002-01-09 Richard Henderson <rth@redhat.com>
15125 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15127 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15129 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15131 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15133 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15135 2002-01-09 Kazu Hirata <kazu@hxi.com>
15137 * read-rtl.c: Fix formatting.
15138 * real.c: Likewise.
15139 * regclass.c: Likewise.
15140 * regrename.c: Likewise.
15141 * reg-stack.c: Likewise.
15142 * reload1.c: Likewise.
15143 * reload.c: Likewise.
15146 2002-01-09 Kazu Hirata <kazu@hxi.com>
15148 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15149 to extract items in the expr_list chain.
15151 2002-01-09 Richard Henderson <rth@redhat.com>
15153 * config/vax/vax.c (vax_rtx_cost): Never abort.
15155 * config/vax/vax.h (REAL_ARITHMETIC): Define.
15157 2002-01-09 Jan Hubicka <jh@suse.cz>
15159 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15161 2002-01-09 Richard Henderson <rth@redhat.com>
15163 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15164 Unify code from various alternatives.
15166 2002-01-09 Richard Henderson <rth@redhat.com>
15168 * regrename.c (copy_value): Ignore the copy if the source register
15169 is present in the value chain with a narrower mode.
15171 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15173 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15174 for the c4x target. Also improve layout.
15176 2002-01-09 Richard Henderson <rth@redhat.com>
15178 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15179 * config/m32r/m32r.md (and ior xor splitters): Swap operands
15180 to match insn patterns.
15182 2002-01-09 Richard Henderson <rth@redhat.com>
15184 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15185 (copyprop_hardreg_forward_1): Likewise.
15187 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
15189 * pa.md (decrement_and_branch_until_zero): Change predicate for
15190 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15192 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15194 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15195 gets undefined. For Darwin.
15197 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15199 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15201 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15203 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15205 2002-01-08 Richard Henderson <rth@redhat.com>
15207 * regrename.c (copy_value): Ignore overlapping copies.
15209 2002-01-08 Richard Henderson <rth@redhat.com>
15211 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15212 as needed to avoid shared structure.
15214 2002-01-08 Kazu Hirata <kazu@hxi.com>
15216 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15219 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15221 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15222 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15223 documentation of obsolete macros.
15224 * system.h: Poison these macros.
15225 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15226 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15227 config/c4x/c4x.h, config/clipper/clipper.h,
15228 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15229 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15230 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
15231 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
15232 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15233 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
15234 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15235 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
15236 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
15237 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15238 config/sparc/sparc.h, config/stormy16/stormy16.h,
15239 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
15240 definitions and commented out definitions of obsolete macros.
15241 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
15242 of MAX_INT_TYPE_SIZE.
15244 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15246 * config/s390/s390.c (s390_preferred_reload_class): Never
15247 return ADDR_REGS if it isn't a subset of the given class.
15248 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
15249 FP_REGS, but all superclasses as well.
15251 * config/s390/s390.c (s390_function_profiler): Fix thinko.
15253 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
15254 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
15255 must not be a const_int.
15257 2002-01-08 Richard Henderson <rth@redhat.com>
15259 * Makefile.in (toplev.o): Depend on options.h.
15260 (gcc.o): Depend on specs.h.
15262 2002-01-08 Jakub Jelinek <jakub@redhat.com>
15264 * expr.c (store_expr): Convert VOIDmode constants back to target's
15267 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15269 * doc/invoke.texi: Markup gcc as @command. Refer to
15270 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
15271 of http://gcc.gnu.org/thanks.html.
15273 2002-01-08 Dale Johannesen <dalej@apple.com>
15275 * config/rs6000/rs6000.md: Add missing int register
15276 target case to movdf_low.
15278 2002-01-08 Zack Weinberg <zack@codesourcery.com>
15280 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
15281 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
15282 (cppinit.o): Depend on except.h.
15283 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
15284 s-specs): New rules.
15286 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
15287 Don't create specs.h/options.h/gencheck.h here. Remove
15288 unnecessary variable settings from last argument of AC_OUTPUT.
15289 * config.in, configure: Regenerate.
15290 * intl.c: Hardcode package name as "gcc".
15292 * cppinit.c: Include except.h.
15293 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
15295 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
15296 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
15297 (!)USING_SJLJ_EXCEPTIONS.
15298 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
15300 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15302 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
15303 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
15304 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
15305 documentation of obsolete macros.
15306 * system.h: Poison these macros.
15307 * config/d30v/d30v.h, config/ns32k/encore.h,
15308 config/stormy16/stormy16.h: Remove definitions and commented out
15309 definitions of obsolete macros.
15311 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
15313 * objc/objc-act.c (handle_class_ref): Mark the declaration of
15314 %sobjc_class_ref_%s as used - to prevent unwanted compiler
15317 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15319 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
15320 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
15321 to insn adjusting stack/frame pointer.
15322 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
15323 accept operands that cause the insn to be non-splittable.
15325 2002-01-08 Graham Stott <grahams@redhat.com>
15327 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
15328 (C_TYPE_FIELDS_VOLATILE): Likewise.
15329 (C_TYPE_BEING_DEFINED): Likewise.
15330 (C_IS_RESERVED_WORD): Likewise.
15331 (C_TYPE_VARIABLE_SIZE): Likewise.
15332 (C_DECL_VARIABLE_SIZE): Likewise.
15333 (C_MISSING_PROTOTYPE_WARNED): Likewise.
15334 (C_SET_EXP_ORIGINAL_CODE): Likewise.
15335 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
15337 (C_DECL_ANTICIPATED): Likewise.
15338 (c_build_type_variant): Add parenthesis.
15340 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15342 * gcc.c (option_map): Remove --version.
15343 (process_command): Handle -fversion following the GNU Coding
15344 Standards. Partially addresses PR other/704.
15346 2002-01-08 Graham Stott <grahams@redhat.com>
15348 * combine.c (combine_instructions): Fix typo.
15350 2002-01-08 Graham Stott <grahams@redhat.com>
15352 * debug.h: Use "tree" and "rtx" throughout.
15354 * debug.c: Likewise.
15356 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
15358 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
15359 constant pool, use the pool's version of the symbol instead.
15361 2002-01-07 Richard Henderson <rth@redhat.com>
15363 * regrename.c (find_oldest_value_reg): Ignore the value chain if
15364 the original register was copied in a mode with a fewer number of
15365 hard registers than the desired mode.
15366 (copyprop_hardreg_forward_1): Likewise.
15367 (debug_value_data): Fix loop test.
15368 * toplev.c (parse_options_and_default_flags): Reenable
15369 -fcprop-registers at -O1.
15371 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15373 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
15374 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
15376 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
15379 * config/rs6000/rs6000.md: Add altivec predicate patterns.
15381 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
15383 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
15384 (pa_output_function_prologue): Output local label at the beginning of
15385 the prologue when profiling.
15386 (hppa_profile_hook): Use the local label rather than the function label.
15387 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
15389 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15391 * config/rs6000/rs6000.c (print_operand): Remove extra space.
15392 (altivec_expand_unop_builtin): Fix thinko.
15393 (altivec_expand_binop_builtin): Same.
15394 (altivec_expand_ternop_builtin): Same.
15395 (altivec_expand_builtin): Same.
15397 2002-01-07 Richard Henderson <rth@redhat.com>
15399 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
15401 2002-01-07 Jason Merrill <jason@redhat.com>
15403 * unwind-dw2.c (execute_cfa_program): Use < again.
15405 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15407 * predict.c (combine_predictions_for_insn): Avoid division by zero.
15409 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15411 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
15412 Don't allow -1 - x -> ~x simplifications in the first pass.
15414 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15416 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
15418 (altivec_expand_binop_builtin): Same.
15419 (altivec_expand_unop_builtin): Same.
15420 (print_operand): Fix typo.
15421 (bdesc_1arg): Add vupk* variants.
15423 * rs6000.h (rs6000_builtins): Add vupk* enums.
15425 * rs6000.md: Add altivec_vupk* variants.
15427 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
15429 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
15430 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
15431 and last update dates.
15433 2002-01-07 Janis Johnson <janis187@us.ibm.com>
15435 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
15437 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
15439 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
15440 * config/avr/avr.h (CPP_SPEC): Likewise.
15441 (LINK_SPEC): Likewise.
15442 (CRT_BINUTILS_SPECS): Likewise.
15443 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15444 * doc/invoke.texi (AVR Options): Document them.
15446 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
15448 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
15451 2002-01-07 Graham Stott <grahams@redhat.com>
15453 * config/i386/i386.h: Update copyright date.
15454 (HALF_PIC_PTR): Add parenthesis.
15455 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
15456 (CONSTANT_ALIGNMENT): Add parenthesis.
15457 (DATA_ALIGNMENT): Likewise.
15458 (LOCAL_ALIGNMENT): Likewise.
15459 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
15460 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
15461 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
15462 (HARD_REGNO_NREGS): Add paranethesis.
15463 (VALID_SSE_REG_MODE): Whitespace.
15464 (VALID_MMX_REG_MODE): Whitespace.
15465 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
15466 (ix86_hard_regno_mode_ok): Add parenthesis.
15467 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
15468 (RETURN_IN_MEMORY): Whitespace.
15469 (N_REG_CLASSES): Add parenthesis.
15470 (INTEGER_CLASS_P): Add parenthesis and wrap.
15471 (FLOAT_CLASS_P): Likewise.
15472 (SSE_CLASS_P): Likewise.
15473 (MMX_CLASS_P): Likewise.
15474 (MAYBE_INTEGER_CLASS_P): Likewise.
15475 (MAYBE_FLOAT_CLASS_P): Likewise.
15476 (MAYBE_SSE_CLASS_P): Likewise.
15477 (MAYBE_MMX_CLASS_P): Likewise.
15478 (Q_CLASS_P): Likewise.
15479 (GENERAL_REGNO_P): Uppercase macro parameter.
15480 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
15481 (FP_REGNO_P): Likewise.
15482 (ANY_FP_REGNO_P): Uppercase macro parameter.
15483 (SSE_REGNO_P): Likewise.
15484 (SSE_REGNO): Likewise.
15485 (SSE_REG_P): Likewise.
15486 (SSE_FLOAT_MODE_P): Likewise.
15487 (MMX_REGNO_P): Likewise.
15488 (MMX_REG_P):Likewise.
15489 (STACK_REG_P): Likewise.
15490 (NON_STACK_REG_P): Likewise.
15491 (STACK_TOP_P): Likewise.
15492 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
15493 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
15494 (SECONDARY_MEMORY_NEEDED): Likewise.
15495 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
15496 (MD_ASM_CLOBBERS): Whitespace and wrap.
15497 (MUST_PASS_IN_STACK): Whitespace and wrap.
15498 (RETURN_POPS_ARGS): Add parenthesis.
15499 (INIT_CUMULATIVE_ARGS): Likewise.
15500 (FUNCTION_ARG): Likewise.
15501 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
15502 (SETUP_INCOMING_VARARGS): Likewise.
15503 (BUILD_VA_LIST_TYPE): Add parenthesis.
15504 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
15506 (EXPAND_BUILTIN_VA_ARG): Likewise.
15507 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
15508 (INITIALIZE_TRAMPOLINE): Add parenthesis.
15509 (INITIAL_ELIMINATION_OFFSET): Likewise.
15510 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
15511 (REGNO_OK_FOR_BASE_P): Likewise.
15512 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
15513 (REGNO_OK_FOR_DIREG_P): Likewise.
15514 (REG_OK_FOR_INDEX_P): Whitespace.
15515 (REG_OK_FOR_BASE_P): Whitespace.
15516 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
15518 (FIND_BASE_TERM): Fix typo.
15519 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
15520 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
15521 (SYMBOLIC_CONST; Whitespace.
15522 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
15523 (ENCODE_SECTION_INFO): Whitespace.
15524 (FINALIZE_PIC): Remove do { ... } while (0).
15525 (PROMOTE_MODE): Wrap in do { ... } while (0).
15526 (CONST_COSTS): Whitespace.
15527 (RTX_COSTS): Add paramethesis, whitespace and wrap.
15528 (REGISTER_MOVE_COST): Add parenthesis.
15529 (MEMORY_MOVE_COST): Likewise.
15530 (EXTRA_CC_MODES): Whitespace.
15531 (SELECT_CC_MODE): Add parenthesis and whitespace.
15532 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
15533 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
15534 (ASM_OUTPUT_LABEL): Add paramethesis.
15535 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
15536 (ASM_OUTPUT_REG_POP): Likewise.
15537 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
15538 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15540 * config/i386/i386.c: Update copyright.
15541 (CHECK_STACK_LIMIT): Add parenthesis.
15542 (AT_BP): Uppercase macro parameter.
15543 (x86_64_int_parameter_registers): Constify.
15544 (x86_64_int_return_registers): Likewise.
15545 (ix86_compare_op0): Use rtx.
15546 (construct_container): Constify INTREG parameter.
15547 (function_arg): Use rtx.
15549 * diagnostic.h: Update copyright date.
15550 (output_buffer_state): Add parenthesis.
15551 (output_buffer_format_args): Likewise.
15553 * combine.c (combine_instructions): Replace XEXP (links, 0)
15556 2002-01-06 H.J. Lu <hjl@gnu.org>
15558 * cfgcleanup.c (thread_jump): Fix 2 typos.
15560 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
15562 * config.gcc: Add support for --enable-altivec.
15564 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
15566 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
15568 2002-01-06 Jakub Jelinek <jakub@redhat.com>
15570 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
15571 __objc_class_name_*.
15573 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
15575 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
15577 2002-01-06 Richard Henderson <rth@redhat.com>
15579 * reorg.c (emit_delay_sequence): Remove death notes, not merely
15580 nop them out. Increment label reference count for REG_LABEL.
15581 (fill_slots_from_thread): Frob label reference count around
15582 delete_related_insns.
15584 2002-01-05 Richard Henderson <rth@redhat.com>
15586 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
15589 2002-01-05 Richard Henderson <rth@redhat.com>
15591 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
15592 * integrate.c (output_inline_function): Likewise.
15593 * toplev.c (rest_of_compilation): Do it here instead. Move call
15594 to remove_unnecessary_notes after emitting abstract instance.
15595 Force an emitted nested function to have its parent emited as well.
15596 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
15598 (rtl_for_decl_location): Do not look at reload data structures
15599 before reload has run.
15601 2002-01-05 Kazu Hirata <kazu@hxi.com>
15603 * cse.c: Fix formatting.
15604 * dwarf2asm.c: Likewise.
15605 * dwarf2out.c: Likewise.
15606 * explow.c: Likewise.
15607 * expmed.c: Likewise.
15608 * function.c: Likewise.
15609 * gcov.c: Likewise.
15610 * gencheck.c: Likewise.
15611 * genrecog.c: Likewise.
15612 * ggc-common.c: Likewise.
15613 * ggc-page.c: Likewise.
15614 * global.c: Likewise.
15616 2002-01-05 Kazu Hirata <kazu@hxi.com>
15618 * combine.c: Fix formatting.
15620 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
15623 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
15625 2002-01-05 David Edelsohn <edelsohn@gnu.org>
15627 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
15628 as 1 for __powerpc64__ as well.
15630 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
15632 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
15635 2002-01-05 Daniel Berlin <dan@dberlin.org>
15637 * lcm.c: Revert change, due to performance regression it causes on
15638 SPEC because it's slightly more conservative (sigh, I hate
15641 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
15643 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
15645 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
15647 * doc/cppinternals.texi: Update.
15649 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
15651 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
15652 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
15654 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
15655 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
15656 kludge for pre-october-14th mmix versions to handle new-found bug
15657 with PUSHJ/PUSHGO and the register stack.
15658 * config/mmix/mmix.h (struct machine_function): Rename member
15659 has_call_value_without_parameters to has_call_without_parameters.
15660 All referers changed.
15661 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
15662 TARGET_MASK_BRANCH_PREDICT): New macros.
15663 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
15664 -mno-reg-stack-fill-bug-workaround.
15665 * config/mmix/mmix.md ("call"): Set struct machine member
15666 has_call_without_parameters.
15668 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
15670 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
15672 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
15674 * cfgcleanup.c: Include tm_p.h
15675 (mark_effect): Fix handling of hard register; fix handling of SET
15677 2002-01-04 Kazu Hirata <kazu@hxi.com>
15679 * config/h8300/h8300.md (anonymous patterns): Check that
15680 operands are registers before using REGNO on them.
15682 2002-01-03 Roland McGrath <roland@frob.com>
15684 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
15686 2002-01-04 Jakub Jelinek <jakub@redhat.com>
15688 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
15689 * c-common.h (genrtl_expr_stmt_value): Likewise.
15690 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
15691 (expand_expr_stmt_value): Add maybe_last argument.
15692 Don't warn about statement with no effect if it is the last statement
15693 in expression statement.
15694 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
15695 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
15696 expand_expr_stmt_value.
15697 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
15698 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
15699 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
15700 as maybe_last to expand_expr_stmt_value.
15702 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
15704 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
15705 be passed in, do not build it.
15706 (c_begin_if_stmt): New function.
15707 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
15708 * c-common.h (c_expand_start_cond): Update prototype.
15709 (c_begin_if_stmt): Prototype new function.
15710 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
15711 * c-parse.in (if_prefix): Use c_begin_if_stmt,
15712 c_begin_while_stmt and c_finish_while_stmt_cond.
15714 2002-01-04 William Cohen <wcohen@redhat.com>
15716 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
15717 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
15718 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
15719 * config/pa/som.h (ASM_FILE_START): Likewise.
15721 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
15723 * lcm.c: Include df.h.
15724 Add available_transfer_function prototype.
15725 (compute_available): Rework to use iterative dataflow framework.
15726 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
15727 with bb_info in df.h
15728 (available_transfer_function): New function.
15730 * Makefile.in (lcm.o): add df.h to dependencies.
15732 2002-01-04 Richard Henderson <rth@redhat.com>
15734 * config/alpha/alpha.c (some_operand): Accept HIGH.
15735 (input_operand): Likewise; accept simple references to globals.
15736 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
15737 (alpha_const_double_ok_for_letter_p): Likewise.
15738 (alpha_extra_constraint): Likewise.
15739 (alpha_preferred_reload_class): Likewise. Do not force
15740 symbolic constants to memory.
15741 (alpha_legitimate_address_p): Accept simple references
15742 to small_symbolic_operand.
15743 (alpha_legitimize_address): New arg scratch. Be prepared to be
15744 called when no_new_pseudos. Emit simple symbolic references.
15745 Split integers into low, high, and rest.
15746 (alpha_expand_mov): Use alpha_legitimize_address.
15747 (some_small_symbolic_mem_operand): New.
15748 (split_small_symbolic_mem_operand): New.
15749 * config/alpha/alpha-protos.h: Update.
15750 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
15751 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
15752 (EXTRA_CONSTRAINT): Likewise.
15753 (PREFERRED_RELOAD_CLASS): Likewise.
15754 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
15755 (PREDICATE_CODES): Update.
15756 * config/alpha/alpha.md: New post-reload splitters to convert
15757 simplfied symbolic operands to the form that references $29.
15758 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
15759 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
15761 2002-01-03 Richard Henderson <rth@redhat.com>
15763 * local-alloc.c (function_invariant_p): Update commentary.
15765 2002-01-04 H.J. Lu <hjl@gnu.org>
15767 * toplev.c (rest_of_compilation): Fix a typo when calling
15770 2002-01-03 Kazu Hirata <kazu@hxi.com>
15772 * c-common.c: Fix formatting.
15773 * diagnostic.c: Likewise.
15774 * doloop.c: Likewise.
15775 * dwarf2out.c: Likewise.
15777 2002-01-03 Kazu Hirata <kazu@hxi.com>
15779 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
15780 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
15782 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
15784 * cpperror.c: Update comments and copyright.
15785 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
15786 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
15788 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
15790 * collect2.c (main): Use strcmp when testing for "-shared".
15792 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
15794 * cppmacro.c: Don't include intl.h. Update comments.
15795 (new_number_token): Allocate enough buffer for 64-bit unsigned
15796 integers; update prototype.
15797 * cppmain.c: Update comments.
15799 2002-01-03 William Cohen <wcohen@redhat.com>
15801 * function.h (struct function): Add profile.
15802 (current_function_profile): New.
15803 doc/extend.texi: Update documentation.
15804 * final.c (final_start_function): Use current_function_profile
15805 instead of profile_flag.
15806 (profile_after_prologue): Likewise.
15807 * function.c (expand_function_start): Likewise.
15808 (expand_function_start): Likewise.
15809 * config/alpha/alpha.c (direct_call_operand):
15810 (alpha_does_function_need_gp): Likewise.
15811 (alpha_expand_prologue): Likewise.
15812 * config/arm/arm.c (arm_expand_prologue): Likewise.
15813 thumb_expand_prologue: Likewise.
15814 * config/d30v/d30v.c (d30v_stack_info): Likewise.
15815 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
15816 (fr30_expand_prologue): Likewise.
15817 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
15818 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
15819 * config/i386/i386.h (FINALIZE_PIC): Likewise.
15820 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
15821 * config/i960/i960.c (i960_output_function_prologue): Likewise.
15822 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
15823 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
15824 (m32r_expand_prologue): Likewise.
15825 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
15826 (m88k_expand_prologue): Likewise.
15827 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
15828 * config/mips/mips.c (compute_frame_size): Likewise.
15829 (mips_expand_prologue): Likewise.
15830 (mips_can_use_return_insn): Likewise.
15831 * config/pa/elf.h (ASM_FILE_START): Likewise.
15832 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
15833 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
15834 * config/pa/som.h (ASM_FILE_START): Likewise.
15835 * config/romp/romp.c (romp_using_r14): Likewise.
15836 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
15837 (rs6000_stack_info): Likewise.
15838 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15839 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
15840 * config/v850/v850.c (compute_register_save_size): Likewise.
15842 2002-01-03 Jakub Jelinek <jakub@redhat.com>
15844 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
15845 gen_lowpart_common fails, use gen_lowpart_SUBREG.
15847 2002-01-03 Turly O'Connor <turly@apple.com>
15849 * darwin.c (machopic_output_possible_stub_label): Don't generate
15850 stub routines for pseudo-stubs which we've just defined.
15852 2002-01-03 Kazu Hirata <kazu@hxi.com>
15854 * builtins.c: Fix formatting.
15855 * c-typeck.c: Likewise.
15856 * combine.c: Likewise.
15857 * expr.c: Likewise.
15858 * loop.c: Likewise.
15860 2002-01-03 Andreas Schwab <schwab@suse.de>
15862 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
15863 and return true if _cpp_push_next_buffer pushed a new include
15865 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
15866 _cpp_pop_file_buffer did not push a new file.
15867 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
15869 2002-01-02 Eric Christopher <echristo@redhat.com>
15871 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
15872 FIND_REG_INC_NOTE call. Update copyright.
15873 * loop.c (canonicalize_condition): Ditto.
15874 * reorg.c (delete_scheduled_jump): Ditto.
15876 2002-01-03 Kazu Hirata <kazu@hxi.com>
15878 * gcse.c: Fix formatting.
15880 2002-01-03 Graham Stott <grahams@redhat.com>
15882 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
15883 forward defs for struct tags rtx_def, union_tree, rtvec_def
15884 also output corresponding typedefs for rtx, tree, and rtvec.
15886 * system.h: Move forward defs for struct tags rtx_def, union_tree,
15887 rtvec_def along with corresponding typedefs for rtx, tree, and
15888 rtvec to config.h, hconfig.h, tconfig.h.
15890 2002-01-03 Graham Stott <grahams@redhat.com>
15892 * tree.h: Update copyright date.
15893 (IS_EXPR_CODE_CLASS): Add parenthesis.
15894 (TREE_SET_CODE): Add whitespace.
15895 (TREE_CHECK): Add parenthesis.
15896 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
15897 (CST_OR_CONSTRUCTOR_CHECK):
15898 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
15899 (TREE_SYMBOL_REFERENCED): Whitespace.
15900 (INT_CST_LT): Likewise.
15901 (INT_CST_LT_UNSIGNED): Likewise.
15902 (tree_real_cst): Unwrap comment.
15903 (tree_string): Likewise.
15904 (tree_complex): Likewise.
15905 (IDENTIFIER_POINTER): correct cast.
15906 (SAVE_EXPR_CONTEXT): Whitespace.
15907 (EXPR_WFL_FILENAME_NODE): Likewise.
15908 (EXPR_WFL_FILENAME): Remove parenthesis.
15909 (DECL_ORIGIN): Add parenthesis.
15910 (DECL_FROM_INLINE): Use NULL_TREE.
15911 (build_int_2): Whitespace.
15912 (build_type_variant): Add parenthesis.
15914 * gcc/jcf-parse.c: Update copyright date.
15915 (yyparse): Constify resource_filename.
15917 2002-01-03 Graham Stott <grahams@redhat.com>
15919 * rtl.h: Update copyright date.
15920 (RTL_CHECK1): Wrap long line.
15921 (RTL_CHECK2): Likewise.
15922 (RTL_CHECKC1): Wrap long line and whitespace.
15923 (RTL_CHECKC2): Likewise.
15924 (XWINT): Whitespace.
15930 (XBITMAP): Likewise.
15932 (XBBDEF): Likewise.
15934 (X0WINT): Likewise.
15936 (X0UINT): Likewise.
15940 (X0MODE): Likewise.
15941 (X0BITMAP): Likewise.
15942 (X0TREE): Likewise.
15943 (X0BBDEF): Likewise.
15944 (X0ADVFLAGS): Likewise.
15945 (X0CSELIB): Likewise.
15946 (X0MEMATTR): Likewise.
15947 (XCWINT): Likewise.
15949 (XCUINT): Likewise.
15953 (XCMODE): Likewise.
15954 (XCBITMAP): Likewise.
15955 (XCTREE): Likewise.
15956 (XCBBDEF): Likewise.
15957 (XCADVFLAGS): Likewise.
15958 (XCCSELIB): Likewise.
15959 (XC2EXP): Likewise.
15960 (INSN_UID): Likewise.
15961 (PREV_INSN): Likewise.
15962 (PATTERN): Likewise.
15963 (INSN_CODE): Likewise.
15964 (PUT_REG_NOTE_KIND): Likewise.
15965 (CODE_LABEL_NUMBER): Likewise.
15966 (NOTE_SOURCE_FILE): Likewise.
15967 (NOTE_BLOCK): Likewise.
15968 (NOTE_EH_HANDLER): Likewise.
15969 (NOTE_RANGE_INFO): Likewise.
15970 (NOTE_LIVE_INFO): Likewise.
15971 (NOTE_BASIC_BLOCK): Likewise.
15972 (NOTE_EXPECTED_VALUE): Likewise.
15973 (NOTE_LINE_NUMBER): Likewise.
15974 (LABEL_NAME): Likewise.
15975 (LABEL_NUSES): Likewise.
15976 (LABEL_ALTERNATE_NAME): Likewise.
15977 (ADDRESSOF_DECL): Likewise.
15978 (JUMP_LABEL): Likewise.
15979 (LABEL_NEXTREF): Likewise.
15981 (ORIGINAL_REGNO: Likewise.
15982 (HARD_REGISTER_NUM_P): Add parenthesis.
15983 (SUBREG_REG): Whitespace.
15984 (SUBREG_BYTE): Likewise.
15985 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
15986 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
15987 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
15988 (ASM_OPERANDS_INPUT_VEC): Likewise.
15989 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
15990 (ASM_OPERANDS_INPUT): Likewise.
15991 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
15992 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
15993 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
15994 (ASM_OPERANDS_INPUT_MODE): Likewise.
15995 (ASM_OPERANDS_SOURCE_FILE): Likewise.
15996 (ASM_OPERANDS_SOURCE_LINE): Likewise.
15997 (MEM_SET_IN_STRUCT_P): Minor reformat.
15998 (TRAP_CONDITION): Whitespace.
15999 (TRAP_CODE): Likewise.
16000 (COND_EXEC_TEST): Likewise.
16001 (COND_EXEC_CODE): Likewise.
16002 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16003 (PHI_NODE_P): Add parenthesis.
16004 (plus_constant): Whitespace and add parenthesis.
16006 2002-01-03 Kazu Hirata <kazu@hxi.com>
16008 * config/avr/avr.c: Fix comment typos.
16009 * config/c4x/c4x.md: Likewise.
16010 * config/dsp16xx/dsp16xx.h: Likewise.
16011 * config/dsp16xx/dsp16xx.md: Likewise.
16012 * config/i386/i386.md: Likewise.
16013 * config/ia64/ia64.c: Likewise.
16014 * config/m32r/m32r.h: Likewise.
16015 * config/m68hc11/m68hc11.md: Likewise.
16016 * config/mmix/mmix.c: Likewise.
16017 * config/mn10200/mn10200.c: Likewise.
16018 * config/romp/romp.c: Likewise.
16019 * config/sh/sh.c: Likewise.
16020 * config/stormy16/stormy16.c: Likewise.
16021 * config/stormy16/stormy16.h: Likewise.
16022 * config/stormy16/stormy16.md: Likewise.
16024 2002-01-03 Graham Stott <grahams@redhat.com>
16026 * loop.h: Update copyright date.
16027 (LOOP_MOVABLES): Fix typo.
16028 (LOOP_REGS): Likewise.
16029 (LOOP_IVS): Likewise.
16031 2002-01-03 Graham Stott <grahams@redhat.com>
16033 * cppinit.c: Update copyright date.
16034 Don't include output.h
16035 * Makefile.in: Update copyright date.
16038 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16041 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16042 (-pthread) Add to RS/6000 options.
16044 2002-01-02 Kazu Hirata <kazu@hxi.com>
16046 * except.c: Fix comment typos.
16047 * loop.c: Likewise.
16048 * varasm.c: Likewise.
16049 * doc/tm.texi: Fix a typo.
16051 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16053 * c-typeck.c (output_init_element): Allow initializing static storage
16054 duration objects with compound literals.
16056 2002-01-02 Richard Henderson <rth@redhat.com>
16058 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16061 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16063 * gcc.c (default_compilers): Const-ify.
16064 * mips-tdump.c (stab_names): Likewise.
16065 * mips-tfile.c (map_coff_types, map_coff_storage,
16066 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16067 pseudo_ops_t, pseudo_ops): Likewise.
16068 * protoize.c (default_include): Likewise
16070 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16071 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16072 Add array size in declaration.
16073 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16074 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16075 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16076 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16077 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16078 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16079 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16080 emtens, make_nan): Const-ify.
16081 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16082 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16084 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16086 * config.gcc (ia64-*-*): Set extra_headers.
16087 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16088 * config/alpha/t-osf: Remove.
16089 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16091 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16093 * config/rs6000/t-aix43: Revert previous change.
16095 2002-01-02 Jason Merrill <jason@redhat.com>
16097 * c-decl.c (c_expand_body): Call outlining_inline_function when
16098 emitting an inline function out of line.
16100 2002-01-02 Richard Henderson <rth@redhat.com>
16102 * dwarf2out.c (limbo_die_node): Add created_for member.
16103 (new_die): New argument created_for. Update all callers.
16104 (mark_limbo_die_list): New.
16105 (dwarf2out_init): Register limbo_die_list as a root.
16106 (dwarf2out_finish): Force insert limbo dies into their function
16109 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16112 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16114 2002-01-02 Kazu Hirata <kazu@hxi.com>
16116 * config/h8300/fixunssfsi.c: Update copyright.
16119 * config/h8300/h8300.c: Update copyright.
16120 Eliminate warnings.
16122 2002-01-02 Kazu Hirata <kazu@hxi.com>
16124 * config/romp/romp.c: Fix comment formatting.
16125 * config/romp/romp.h: Likewise.
16126 * config/romp/romp.md: Likewise.
16127 * config/s390/s390.c: Likewise.
16128 * config/stormy16/stormy16.c: Likewise.
16129 * config/stormy16/stormy16.h: Likewise.
16131 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16133 * c-common.h (genrtl_expr_stmt_value): Declare.
16134 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16135 (genrtl_goto_stmt_value): ... this new function. Pass new
16136 argument down to expand_expr_stmt_value, taking
16137 TREE_ADDRESSABLE into account.
16138 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16139 STMT_EXPR as addressable, i.e., one whose result we want.
16140 * expr.c (expand_expr): Don't save expression statement value
16141 of labeled_blocks or loop_exprs.
16142 * stmt.c (expand_expr_stmt): Redirect to...
16143 (expand_expr_stmt_value): ... this new function. Use new
16144 argument to tell whether to save expression value.
16145 (expand_end_stmt_expr): Reset last_expr_type and
16146 last_expr_value if we don't have either.
16147 * tree-inline.c (declare_return_variable): Mark its use
16148 statement as addressable.
16149 * tree.h: Document new use of TREE_ADDRESSABLE.
16150 (expand_expr_stmt_value): Declare.
16152 2002-01-01 Tom Rix <trix@redhat.com>
16154 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16155 rs6000_emit_allocate_stack.
16157 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
16159 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16160 ${srcdir}/ginclude/ to every entry in extra_headers.
16161 * configure: Regenerate.
16162 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16163 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16164 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16165 * ginclude/proto.h: Rename to config/convex/proto.h.
16167 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16169 * attribs.c (handle_vector_size_attribute): Use host_integerp
16170 and tree_int_cst; remove warnings.
16171 * caller-save.c (insert_restore): Add cast to get rid of warning.
16172 (insert_save): Likewise.
16173 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16174 * regmove.c (find_matches): Add temporary var to kill a warning.
16176 2002-01-01 Douglas B Rupp <rupp@gnat.com>
16178 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16179 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16180 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16181 (vms-dwarf2eh.o): Add Makefile rule.
16182 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16183 * config/alpha/vms-dwarf2eh.asm: New file.
16185 * gcc.c (delete_if_ordinary): Delete all versions.
16187 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
16189 * config/mmix/mmix.md: Update FIXME to not mention
16191 (MMIX_rJ_REGNUM): New define_constants constant.
16192 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16193 "*movdicc_real"): Adjust contraints formatting.
16194 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16195 for branch prediction.
16196 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16198 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16199 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16200 number. Delete related FIXMEs.
16201 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16202 from number to MMIX_rJ_REGNUM.
16203 (TARGET_MASK_BRANCH_PREDICT): New.
16204 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16205 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
16206 value. Add -mbranch-predict and -mno-branch-predict.
16207 (TARGET_VERSION): Drop date.
16208 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16209 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16210 for finding out global symbols.
16211 (mmix_asm_output_labelref): Revert condition for global symbol.
16212 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16213 (mmix_print_operand_punct_valid_p): A '+' is valid.
16215 See ChangeLog.6 for earlier changes.