]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
freebsd.h (NO_IMPLICIT_EXTERN_C, [...]): Give value.
[gcc.git] / gcc / ChangeLog
CommitLineData
d360fd18
DB
12002-04-11 David O'Brien <obrien@FreeBSD.org>
2
3 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
5 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7 elfos.h and dbxelf.h values are fine now.
8 * config/i386/freebsd.h, config/alpha/freebsd.h
9 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
10
5b8fcab6
DB
112002-04-11 David O'Brien <obrien@FreeBSD.org>
12
13 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
14 or set Acpu or Amachine. Reformat.
15 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16 define.
17 (LINK_SPEC): Do not need to undef.
18 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
19 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
20 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
21 define.
22 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
23 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
24 (LINK_SPEC): Do not need to undef.
25 (DONT_USE_BUILTIN_SETJMP): Do not define.
26 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
27 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
28 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
29 Remove trailing spaces.
30 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
31 __ELF__, or set Acpu or Amachine. Reformat.
32 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
33 define.
34
fee42cc1
DB
352002-04-11 David O'Brien <obrien@FreeBSD.org>
36
37 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
38 all other *-*-freebsd* targets.
39
77a403e4
RH
402002-04-11 Richard Henderson <rth@redhat.com>
41
42 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
43
cf0005c6
DB
442002-04-11 David O'Brien <obrien@FreeBSD.org>
45
46 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
47 Include {cpu}/{cpu}.h thru tm_file.
48 (alpha*-*-linux*ecoff): Remove target.
49 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
50 (LINK_SPEC): Remove, is not OS independent.
51 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
52 (LINK_SPEC): Do not need to #undef any longer.
53 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
54 any longer.
55 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
56 __ELF__.
57 (LINK_SPEC): Moved here from alpha/elf.h.
58 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
59 SUB_CPP_PREDEFINES.
60 * config/alpha/linux-ecoff.h: Remove.
61 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
62 (CPP_SPEC): Define _POSIX_SOURCE as needed.
63 (CPP_SUBTARGET_SPEC): Do not define.
64 (LINK_SPEC): Do not need to #undef any longer.
65 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
66 * config/alpha/vms.h: Likewise.
67
7825d1cf
RS
682002-04-11 Richard Sandiford <rsand
69
70 * doc/extend.texi: Remove old claim that typedefs cannot have
71 an alignment attribute.
72
010f87c4
JJ
732002-04-11 Jakub Jelinek <jakub@redhat.com>
74
75 PR optimization/6177
76 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
77 bitpos is 0 and bitsize CONCAT size.
78
578fc63d
JJ
792002-04-11 Jakub Jelinek <jakub@redhat.com>
80
81 PR c/6223
82 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
83
bf9b85ce
DB
842002-04-10 David O'Brien <obrien@FreeBSD.org>
85
86 * config/alpha/freebsd.h: Minor reformatting.
87 (CPP_SPEC): Define ELF and add cpp_subtarget.
88 (ASM_SPEC): No longer needed.
89
7425707d
RH
902002-04-11 Richard Henderson <rth@redhat.com>
91
92 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
93 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
94 (dimode mem/zero splitter): New.
95
1a05e874
HPN
962002-04-11 Hans-Peter Nilsson <hp@axis.com>
97
98 * config/cris/cris.c (cris_override_options): Tweak error message
99 for PIC not implemented.
100
101 * config/cris/cris.h: Tweak comments related to parameter-passing.
102
103 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
104
6f3d0447
RH
1052002-04-10 Richard Henderson <rth@redhat.com>
106
107 * except.c (add_ehl_entry): Allow duplicates after landing pad
108 creation.
109
174bf2b1
DE
1102002-04-10 David Edelsohn <edelsohn@gnu.org>
111
112 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
113
03f10472
TM
1142002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
115
116 * c-decl.c (c_init_decl_processing): Move generation of
117 decls for g77_integer_type_node and friends from here ...
118 * c-common.c (c_common_nodes_and_builtins): ... to here.
119
2f460a0a
UW
1202002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
121
122 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
123 is only used as frame pointer when frame_pointer_needed is true.
124
0be5cf85
RE
1252002-04-10 Richard Earnshaw <rearnsha@arm.com>
126
127 PR target/817
128 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
129 for the fact that the pool entry uses two words.
130 (movdf_hard_insn): Similarly. Also, ADR instruction can span
131 1k bytes.
132 (movdf_soft_insn): Similarly.
133 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
134 for the fact that the pool entry uses three words.
135
bf6d4777
RS
1362002-04-10 Richard Sandiford <rsandifo@redhat.com>
137
138 * config/mips/mips.c (mips_va_arg): When using the struct version
139 of the EABI va_list, allow arguments in the register save area to
140 take up less room than a stack argument.
141
c2e9dc85
RH
1422002-04-10 Richard Henderson <rth@redhat.com>
143
144 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
145 if EXPAND_INITIALIZER.
146
bc8e8e97
RH
1472002-04-09 Richard Henderson <rth@redhat.com>
148
149 * config/alpha/alpha.md (movdi_er_maybe_g): New.
150 * config/alpha/alpha.c (alpha_expand_mov): Use it.
151
a6a063b8
AM
1522002-04-10 Alan Modra <amodra@bigpond.net.au>
153
154 PR optimization/6233
155 * rtlanal.c (pure_call_p): New function.
156 * rtl.h (pure_call_p): Declare.
157 * loop.c (prescan_loop): Use it to set has_nonconst_call.
158 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
159
7b2e1077
EC
1602002-04-09 Eric Christopher <echristo@redhat.com>
161
162 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
163 information to .comm directive.
164
d8a50944
RH
1652002-04-09 Richard Henderson <rth@redhat.com>
166
167 PR c/5078
168 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
169
6a58eee9
RH
1702002-04-09 Richard Henderson <rth@redhat.com>
171
172 * basic-block.h (flow_delete_block_noexpunge): Declare.
173 (expunge_block_nocompact): Declare.
174 * cfg.c (expunge_block_nocompact): Split out from ...
175 (expunge_block): ... here.
176 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
177 (flow_delete_block_noexpunge): Split out from ...
178 (flow_delete_block): ... here.
179 * cfgcleanup.c (delete_unreachable_blocks): Compact while
180 removing dead blocks.
181 * except.c (exception_handler_labels): Remove.
182 (exception_handler_label_map): New.
183 (struct eh_region): Add aka member.
184 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
185 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
186 (for_each_eh_label, for_each_eh_label_1): New.
187 (init_eh): Register exception_handler_label_map.
188 (free_eh_status): Use free_region.
189 (find_exception_handler_labels): Use the map, not the list.
190 (remove_exception_handler_label): Likewise.
191 (maybe_remove_eh_handler): Likewise.
192 (remove_eh_handler): Use the region aka bitmap.
193 * except.h (exception_handler_labels): Remove.
194 (for_each_eh_label): Declare.
195 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
196 * loop.c (invalidate_loops_containing_label): New.
197 (find_and_verify_loops): Use it. Use for_each_eh_label.
198 * sched-rgn.c (is_cfg_nonregular): Use
199 current_function_has_exception_handlers.
200
b47374fa
RH
2012002-04-09 Richard Henderson <rth@redhat.com>
202
203 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
204 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
205 Do not return changed status.
206 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
207 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
208 New functions that do return changed status.
209 * sbitmap.h: Update decls.
210 * gcse.c, lcm.c: Use _cg functions as needed.
211
1951818c
R
212Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
213
214 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
215 (sh64-*-elf*, sh-*-rtemself*): Likewise.
216 * config/sh/embed_bb.c: New file.
217 * config/sh/embed-elf.h: New file.
218 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
219 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
220 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
221 __PTRDIFF_TYPE__ .
222 (SUBTARGET_CPP_PTR_SPEC): Don't define.
223 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
224 Add subtarget_asm_endian_spec.
225 (ASM_SPEC): Use subtarget_asm_endian_spec.
226 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
227 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
228 (WCHAR_UNSIGNED): Define.
229 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
230 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
231 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
232 Fix value.
233 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
234 (sh_adjust_cost): Likewise.
235 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
236 __PTRDIFF_TYPE__ .
237 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
238 (WCHAR_TYPE_SIZE): Likewise.
239 (ASM_SPEC): Use subtarget_asm_endian_spec.
240 (SH_ELF_WCHAR_TYPE): #undef/ #define.
241 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
242 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
243 (MAX_WCHAR_TYPE_SIZE): Don't #define .
244 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
245 (USER_LABEL_PREFIX): Don't #undef /#define .
246 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
247 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
248 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
249 (ASM_SPEC): Likewise.
250 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
251 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
252 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
253 (LIB2FUNCS_EXTRA): Define.
254 * t-sh64 (LIB2FUNCS_EXTRA): Define.
255 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
256 (LIB1ASMFUNCS_CACHE): Define.
257 (LIB2FUNCS_EXTRA): Redefine empty.
258
34295799
RH
2592002-04-08 Richard Henderson <rth@redhat.com>
260
261 * reorg.c (get_branch_condition): Use reversed_comparison_code.
262
e8766a39
SC
2632002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
264
265 * config/m68hc11/larith.asm (__map_data_section): Fix condition
266 and optimize for size.
267 (__do_global_ctors): Fix pointer comparison.
268 (__do_global_dtors): Likewise.
269
f451b552
DM
2702002-04-09 David S. Miller <davem@redhat.com>
271
272 * config/sparc/sparc.c (sparc_extra_constraint_check): New
273 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
274 allow reloading pseudos.
275 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
276 * config/sparc/sparc-protos.h: Declare it.
277
278 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
279 unsigned comparison warning.
280 (output_restore_regs): Mark leaf_function as unused.
281
1ce7f3c2
RK
282Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
283
284 * expr.c (is_aligning_offset): New function.
285 (expand_expr, case COMPONENT_EXPR): Call it.
286
7a31a340
DM
2872002-04-08 David S. Miller <davem@redhat.com>
288
289 PR target/6082
290 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
291
292 Make init_priority work on Sparc when using GNU ld.
293 * config/sparc/linux.h, config/sparc/linux64.h,
294 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
295 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
296 * config/sparc/sol2-gld.h: New file to do the same.
297 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
298 sparc/sol2-gld.h to tm_file.
299
300 PR optimization/4328
301 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
302 * doc/md.texi: Document it.
303 * config/sparc/sparc.md (movdi_insn_sp64_novis,
304 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
305 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
306 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
307 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
308
11579f33
AJ
3092002-04-08 Andreas Jaeger <aj@suse.de>
310
311 * stmt.c (expand_asm_operands): Revert last patch from Richard
312 Henderson.
313
b57215d9
GP
3142002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
315
316 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
317 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
318
3192002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
320
321 * doc/contrib.texi (Contributors): Add David O'Brien.
322
534d0cc0
AM
3232002-04-08 Alan Modra <amodra@bigpond.net.au>
324
325 * configure.in (auto-build.h): Use target_alias and build_alias
326 when running configure.
327 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
328 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
329 * configure: Regenerate.
330
19fe522a
DM
3312002-04-07 David S. Miller <davem@redhat.com>
332
333 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
334
bf2d0b8e
JDA
3352002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
336
337 PR 5933
338 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
339 generating 32-bit pic code.
340
477cdac7
JT
3412002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
342
343 * cppinit.c (cpp_create_reader): Initialize
344 discard_comments_in_macro_exp.
345 (COMMAND_LINE_OPTIONS): Add "-CC" option.
346 (cpp_handle_option): Handle "-CC" option.
347 * cpplex.c (save_comment): If saving a C++ comment in
348 a directive, convert it to a C comment.
349 (_cpp_lex_direct): Pass second comment start character to
350 save_comment to indicate comment type.
351 * cpplib.c (_cpp_handle_directive): If processing
352 a "#define" directive and discard_comments_in_macro_exp
353 is false, re-enable saving of comments.
354 (lex_macro_node): If discard_comments_in_macro_exp is false,
355 discard any comments before the macro identifier.
356 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
357 member.
358 * cppmacro.c (cpp_get_token): If expanding a macro while
359 processing a directive, discard any comments we might encounter.
360 (parse_params): If discard_comments_in_macro_exp is false,
361 ignore comments in the macro parameter list.
362 * gcc.c (cpp_unique_options): Add "-CC" option.
363 (option_map): Map "--comments-in-macros" to "-CC".
364 * doc/cppopts.texi: Document "-CC" option.
365 * f/lang-specs.h: Add "-CC" option.
366 * testsuite/gcc.dg/cpp/maccom1.c: New test.
367 * testsuite/gcc.dg/cpp/maccom2.c: New test.
368 * testsuite/gcc.dg/cpp/maccom3.c: New test.
369 * testsuite/gcc.dg/cpp/maccom4.c: New test.
370 * testsuite/gcc.dg/cpp/maccom5.c: New test.
371 * testsuite/gcc.dg/cpp/maccom6.c: New test.
372
f1526122
JDA
3732002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
374
375 PR middle-end/6180
376 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
377
b1896e61
MM
3782002-04-06 Mark Mitchell <mark@codesourcery.com>
379
0154eaa8
MM
380 PR c++/5571
381 * stor-layout.c (layout_decl): Reset the RTL for the decl.
382
b1896e61
MM
383 PR opt/5120
384 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
385 RTX_UNCHANGING_P for the functions arguments when a tail call
386 is made.
387
b0148884
JM
3882002-04-06 Jason Merrill <jason@redhat.com>
389
390 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
391 (parse_options_and_default_flags): Set them appropriately.
392 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
393
392fc5b0
HPN
3942002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
395
396 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
397 here.
398
399 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
400 semicolon.
401
402 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
403 types come in by-reference. Fix typo in comment.
404
2d69e3cb
DM
4052002-04-05 David S. Miller <davem@redhat.com>
406
407 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
408 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
409 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
410 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
411
4122002-04-05 David S. Miller <davem@redhat.com>
413
414 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
415 are not going to emit return instructions, emit at least a nop
416 for the sake of sane backtraces.
417
5f9fb0e3
RH
4182002-04-05 Richard Henderson <rth@redhat.com>
419
420 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
421
49f37a0d
JJ
4222002-04-05 Jakub Jeilnek <jakub@redhat.com>
423
424 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
425
974a3101
AO
4262002-04-05 Alexandre Oliva <aoliva@redhat.com>
427
428 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
429 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
430 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
431
2e04a694
AS
4322002-04-05 Andreas Schwab <schwab@suse.de>
433
a40179bd 434 * c-convert.c: Include c-common.h.
2e04a694
AS
435 * Makefile.in (c-convert.o): Updated.
436
1f785b7c
JJ
4372002-04-05 Jakub Jelinek <jakub@redhat.com>
438
439 * mklibgcc.in: Use separate libgcc.map for each multilib.
440 * Makefile.in (distclean): Don't remove libgcc.map here.
441
4d2fb38b
JJ
4422002-04-05 Jakub Jelinek <jakub@redhat.com>
443
444 * Makefile.in (s-mlib): Handle --disable-multilib by separate
445 genmultilib invocation.
446
bb63e5a0
RS
4472002-04-04 Richard Sandiford <rsandifo@redhat.com>
448
449 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
450 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
451 to num_gprs for symmetry.
452 * config/mips/mips.c: Adjust accordingly.
453
8ab80eaa
NB
4542002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
455
456 * c-common.c (truthvalue_conversion): Rename, update.
457 * c-common.h (c_common_truthvalue_conversion): New.
458 * c-convert.c (convert): Update.
459 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
460 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
461 * c-typeck.c (build_binary_op, build_unary_op,
462 build_conditional_expr): Update.
463 * fold-const.c (constant_boolean_node, fold): Use langhook.
464 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
465 * langhooks.h (struct lang_hooks): New hook.
466 * stmt.c (expand_decl_cleanup): Use langhook.
467 * tree.h (truthvalue_conversion): Remove.
468objc:
469 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
470
a2e9374a
AM
4712002-04-05 Alan Modra <amodra@bigpond.net.au>
472
473 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
474 Add rules to make null object file.
475
64d08263
JB
4762002-04-04 Jim Blandy <jimb@redhat.com>
477
478 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
479 macro formal parameter names.
480
aa7634dd
DM
4812002-04-04 David S. Miller <davem@redhat.com>
482
483 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
484
ecc114f7
RH
4852002-04-04 Richard Henderson <rth@redhat.com>
486
487 PR middle-end/5099
488 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
489 Support copies into and out of memory. Don't accept allows_reg
490 and allows_mem as gospel.
491
c4484b8f
RH
4922002-04-04 Richard Henderson <rth@redhat.com>
493
494 PR opt/6165
495 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
496 (write_dependence_p): Likewise.
497
39002160
RH
4982002-04-04 Richard Henderson <rth@redhat.com>
499
500 * predict.c (estimate_bb_frequencies): Do frequency calculation
501 with a volatile temporary.
502
f53ebe71
UW
5032002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
504
505 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
506
15e0ecab
JJ
5072002-04-04 Jakub Jelinek <jakub@redhat.com>
508
509 PR c++/6119
510 * final.c (final_start_function): Don't bump profile_label_no here...
511 (final_end_function): ...but here.
512
ffd386b0
JJ
5132002-04-04 Jakub Jelinek <jakub@redhat.com>
514
515 * config/sparc/sparc.md (pic): New attribute.
516 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
517 into stack slots.
518 (split after do_builtin_setjmp_setup): New.
519
8b156b3e
JJ
5202002-04-04 Jakub Jelinek <jakub@redhat.com>
521
522 PR fortran/6106
523 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
524 change.
525
014c0998
JJ
5262002-04-04 Jakub Jelinek <jakub@redhat.com>
527
528 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
529 UNITS_PER_WORD for zero sized aggregates.
530
4d8611d9
DM
5312002-04-03 David S. Miller <davem@redhat.com>
532
533 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
534 one-character spec for this, just use %(link_gcc_c_sequence).
535
b03ad99d
DM
5362002-04-03 David S. Miller <davem@redhat.com>
537
538 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
539 handling.
540
823fbbce
JDA
5412002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
542
543 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
544 (DWARF_FRAME_RETURN_COLUMN): Move.
545 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
546 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
547 * pa.c (except.h, predict.h): Include.
548 (FRP): Delete.
549 (store_reg_modify, set_reg_plus_d): Revise prototypes.
550 (output_ascii): Add cast.
551 (store_reg_modify): Revise to add frame notes.
552 (set_reg_plus_d): Likewise.
553 (compute_frame_size): Include space for eh data registers in frame if
554 the current function calls eh_return.
555 (hppa_expand_prologue): Ensure register %r2 is saved if the current
556 function calls eh_return. Save eh data registers if the current
557 function calls eh_return. Fix code to add frame notes. Emit
558 blockage to prevent insns with frame notes being scheduled in the
559 delay slot of calls.
560 (hppa_expand_epilogue): Restore eh data registers and do final stack
561 adjustment if the current function calls eh_return. Don't add frame
562 notes.
563 (output_call): Revise for change in length of call insn. Don't do
564 return pointer adjustment for an unconditional jump in the delay slot
565 of a call when using frame notes.
566 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
567 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
568 (ARG_POINTER_CFA_OFFSET): Define.
569 * pa.md (return_external_pic): New pattern.
570 (prologue): Correct formatting. Use return_external_pic if current
571 function calls eh_return.
572 (call_internal_symref, call_value_internal_symref,
573 sibcall_internal_symref, sibcall_value_internal_symref): Change default
574 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
575 respectively.
576 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
577
578 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
579 list of targets to check using "nop" insn.
580 * configure: Rebuilt.
581
4078e224
AM
5822002-04-04 Alan Modra <amodra@bigpond.net.au>
583
584 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
585
bbd7687d
DM
5862002-04-03 David S. Miller <davem@redhat.com>
587
588 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
589 library sequence passed to the linker.
590 (LINK_COMMAND_SPEC): Use it.
591 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
592 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
593 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
594
659e5a7a
JM
5952002-04-03 Jason Merrill <jason@redhat.com>
596
597 * except.c (struct eh_status): Remove protect_list.
598 (begin_protect_partials, end_protect_partials): Remove.
599 (add_partial_entry): Remove.
600 * except.h: Remove prototypes.
601
602 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
603 expand_decl_cleanup_eh.
604
605 PR c++/5636
606 * tree.h (CLEANUP_EH_ONLY): New macro.
607 * stmt.c (expand_decl_cleanup_eh): New fn.
608 (expand_cleanups): Check CLEANUP_EH_ONLY.
609 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
610 Use expand_decl_cleanup_eh.
611 (expand_stmt): Adjust.
612 * c-common.h: Adjust prototype.
613
053d3344
HPN
6142002-04-04 Hans-Peter Nilsson <hp@axis.com>
615
616 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
617 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
618 (cris_target_asm_function_epilogue): Ditto.
619 (cris_initial_frame_pointer_offset): Ditto.
620 (cris_simple_epilogue): Ditto.
621 (cris_expand_builtin_va_arg): Variable-size types come in
622 by-reference.
623
61ab5260
DM
6242002-04-03 David S. Miller <davem@redhat.com>
625
626 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
627 little-endian.
628 (set_fast_math): Correct 'fsr' type.
629
ef4f94ac
RH
6302002-04-03 Richard Henderson <rth@redhat.com>
631
36c2272c 632 PR opt/3569
ef4f94ac
RH
633 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
634 * toplev.c (check_global_declarations): Use it.
635 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
636 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
637 (LANG_HOOKS_DECLS): Add it.
638 * langhooks.c (lhd_warn_unused_global_decl): New.
639 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
640 * c-objc-common.c (c_warn_unused_global_decl): New.
641 * c-tree.h (c_warn_unused_global_decl): Declare.
642 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
643
599bba86
NB
6442002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
645
646 * langhooks-def.h (lhd_set_decl_assembler_name,
647 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
648 (LANG_HOOKS_INITIALIZER): Update.
649 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
650 * langhooks.h (struct lang_hooks): New hook.
651 * tree.c (set_decl_assembler_name): Move to langhooks.c.
652 (lang_set_decl_assembler_name): Remove.
653 (init_obstacks): Don't set hook.
654 (decl_assembler_name): New function.
655 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
656 (decl_assembler_name): New.
657 (lang_set_decl_assembler_name): Remove.
658
cf7b8b0d
JJ
6592002-04-03 Jakub Jelinek <jakub@redhat.com>
660
661 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
662 works properly with .hidden symbols.
663 * configure: Rebuilt.
664 * config.in: Rebuilt.
665 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
666 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
667 properly with .hidden symbols.
668
faf6db38
JJ
6692002-04-03 Jakub Jelinek <jakub@redhat.com>
670
671 PR middle-end/6102
672 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
673 USE argument.
674
68c17f30
RH
6752002-04-03 Richard Henderson <rth@redhat.com>
676
677 PR opt/4120
678 * sched-rgn.c (sets_likely_spilled): New.
679 (sets_likely_spilled_1): New.
680 (add_branch_dependences): Use it.
681
6584b4aa
RH
6822002-04-02 Richard Henderson <rth@redhat.com>
683
684 PR opt/4311
685 * loop.h (LOOP_FIRST_PASS): New.
686 * loop.c (strength_reduce): Mind it when deciding to unroll.
687 * toplev.c (rest_of_compilation): Set it.
688
0acf409f
DM
6892002-04-02 David S. Miller <davem@redhat.com>
690
691 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
692 mems_ok_for_ldd_peep when the order of the loads being examined
693 is reversed.
694 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
695 existing comment to increase comprehension of this situation.
696
85654444
ZW
6972002-04-02 Zack Weinberg <zack@codesourcery.com>
698
699 * config/sh/sh.md: Don't use union real_extract.
700
543828ca
RH
7012002-04-02 Richard Henderson <rth@redhat.com>
702
703 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
704
39ed301b
DB
7052002-04-02 David O'Brien <obrien@FreeBSD.org>
706
707 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
708 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
709 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
710 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
711 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
712 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
713 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
714 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
715 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
716 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
717 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
718 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
719 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
720 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
721 Include as many configury headers via tm_file as possible. This
722 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
723 * config/openbsd-oldgas.h: New file.
724 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
725 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
726 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
727 config/i386/i386-coff.h, config/i386/i386-interix.h,
728 config/i386/iscdbx.h, config/i386/linux-aout.h,
729 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
730 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
731 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
732 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
733 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
734 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
735 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
736 config/i386/vxi386.h: Do not directly include configury headers.
737 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
738 Directly include configury headers that are no longer automatically
739 included by the above headers.
740 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
741 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
742 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
743 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
744 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
745 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
746 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
747 (TARGET_VERSION): Define.
748 * config/i386/beos-elf.h, config/i386/freebsd.h,
749 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
750 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
751 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
752 config/i386/sco5.h, config/i386/sysv4.h
753 (TARGET_VERSION): Do not need to protect.
754 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
755 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
756 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
757 config/i386/i386-interix.h, config/i386/linux-aout.h,
758 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
759 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
760 (YES_UNDERSCORES): Do not define - not needed.
761 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
762 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
763 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
764 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
765 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
766 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
767 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
768 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
769
9432c136
EB
7702002-04-02 Eric Botcazou <ebotcazou@multimania.com>
771 Richard Henderson <rth@redhat.com>
772
773 PR c/5484
774 * function.c (assign_temp): Accept either type or decl argument.
775 Detect variables whose size is too large to fit into an integer.
776 * stmt.c (expand_decl): Pass the decl, not the type.
777
058b1275
DB
7782002-04-02 David O'Brien <obrien@FreeBSD.org>
779
780 * protoize.c: Match include directory usage with cppdefault.c.
781
5add6d1a
JL
7822002-04-03 Jeffrey A Law (law@redhat.com)
783 Hans-Peter Nilsson <hp@bitrange.com>
784
785 * combine.c (simplify_comparison): Avoid narrowing a comparison
786 with a paradoxical subreg when doing so would drop signficant bits.
787
1e533e4b
SE
7882002-04-02 Steve Ellcey <sje@cup.hp.com>
789
790 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
791 if POINTERS_EXTEND_UNSIGNED is defined.
792
7a145e92
RH
7932002-04-02 Richard Henderson <rth@redhat.com>
794
795 PR opt/3967
796 * local-alloc.c (contains_replace_regs): LO_SUM may contain
797 replace regs.
798
3a079822
RH
7992002-04-02 Richard Henderson <rth@redhat.com>
800
801 * doc/standards.texi: Document required freestanding libc entry points.
802
c94ccb87
AM
8032002-04-02 Alan Modra <amodra@bigpond.net.au>
804
805 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
806 associated splitter. Remove MQ constraint.
807 (ctrdi_internal4): Correct CCmode clobber.
808
fe660a1a
JDA
8092002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
810
811 * milli64.S ($$dyncall): New function.
812 * t-linux (LIB1ASMFUNCS): Revise module list.
813 (LIB1ASMSRC): Use pa/milli64.S.
814
eadc0202
RH
8152002-04-02 Richard Henderson <rth@redhat.com>
816
817 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
818 rename solaris_sys_varargs_h.
819
a1471322
RK
820Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
821
822 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
823 the same mode as its component.
824
c8b94768
RH
8252002-04-02 Richard Henderson <rth@redhat.com>
826
827 PR opt/190
828 * final.c (this_is_asm_operands): Export.
829 * output.h (this_is_asm_operands): Declare.
830 * config/i386/i386.c (print_operand): Error odd asm operands.
831
161eb4fc
RH
8322002-04-02 Richard Henderson <rth@redhat.com>
833
834 PR opt/420
835 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
836
b88a94c6
RH
8372002-04-01 Richard Henderson <rth@redhat.com>
838
839 PR target/1538
840 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
841 * fixinc/fixincl.x: Rebuild.
842
72e32876
RH
8432002-04-01 Richard Henderson <rth@redhat.com>
844
845 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
846 (atomic_alloc, atomic_free): New.
847 (SIZE, MASK_FOR, PTR_IN): New.
848 (emergency_reg_state, emergency_reg_state_free): New.
849 (emergency_labeled_state, emergency_labeled_state_free): New.
850 (reg_state_alloced, labeled_state_alloced): New.
851 (alloc_reg_state, free_reg_state): New.
852 (alloc_label_state, free_label_state, free_label_states): New.
853 (push, pop, dup_state_stack, free_state_stack): Use them.
854 (desc_label_state): Likewise.
855 (uw_frame_state_for): Free label states and state stack.
856 (uw_update_reg_address): Eliminate warnings.
857
84d76074
VM
8582002-04-01 Vladimir Makarov <vmakarov@redhat.com>
859
860 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
861 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
862
dffd7eb6
NB
8632002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
864
865 * c-decl.c (grokdeclarator): Update.
866 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
867 * c-tree.h (c_mark_addressable): New.
868 * c-typeck.c (default_function_array_conversion, build_unary_op,
869 build_array_ref, convert_for_assignment): Update.
870 (mark_addressable): Rename.
871 * calls.c (try_to_integrate, expand_call): Use langhook.
872 * expr.c (expand_expr): Use langhook.
873 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
874 * langhooks.h (struct lang_hooks): New hook.
875 * stmt.c (expand_asm_operands): Use langhook.
876 * tree.h (mark_addressable): Remove.
877objc:
878 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
879
544ef5b5
BW
8802002-04-01 Bob Wilson <bob.wilson@acm.org>
881
882 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
883 in previous change.
884
bcf88f9b
BW
8852002-04-01 Bob Wilson <bob.wilson@acm.org>
886
887 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
888 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
889
ceef8ce4
NB
8902002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
891
892 * c-common.c (unsigned_conversion_warning, convert_and_check,
893 unsigned_type, signed_type, shorten_compare,
894 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
895 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
896 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
897 New.
898 * c-decl.c (grokdeclarator): Update.
899 * c-format.c (check_format_types): Update.
900 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
901 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
902 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
903 * convert.c (convert_to_integer): Use new hooks.
904 * expmed.c (make_tree): Use new hooks.
905 * expr.c (store_expr): Use new hooks.
906 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
907 all_ones_mask_p, unextend, fold): Use new hooks.
908 * langhooks.h (struct lang_hooks_for_types): New hooks.
909 * tree.h (signed_or_unsigned_type, signed_type,
910 unsigned_type): Remove.
911objc:
912 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
913 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
914
1d9ad0e0
RH
9152002-03-31 Richard Henderson <rth@redhat.com>
916
917 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
918 (desc_frgr_mem): Fix reference to f16-f31.
919
d544bc39
KG
9202002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
921
922 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
923 RTVEC_ELT): Const-ify.
d8750784
KG
924 * varray.h (VARRAY_CHECK): Const-ify.
925 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
926 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 927
b18101c7
NB
9282002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
929
930 * diagnostic.c: Include langhooks-def.h.
931 * Makefile.in (diagnostic.o): Update.
932
48a7a235
NB
9332002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
934
935 * c-common.c (c_unsafe_for_reeval): Rename.
936 * c-common.h (c_unsafe_for_reeval): Rename.
937 * c-decl.c (finish_incomplete_decl): Rename.
938 (c_init_decl_processing): Don't set langhook.
939 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
940 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
941 * c-objc-common.c (c_objc_common_init): Don't set langhook.
942 * c-tree.h (finish_incomplete_decl): Rename.
943 * langhooks-def.h (lhd_unsafe_for_reeval): New.
944 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
945 (LANG_HOOKS_INITIALIZER): Update.
946 * langhooks.c (lhd_unsafe_For_reeval): New.
947 * langhooks.h (struct langhooks): New hooks.
948 * toplev.c (incomplete_decl_finalize_hook): Remove.
949 (wrapup_global_declarations): Update.
950 * tree.c (lang_unsafe_for_reeval): Remove.
951 (unsafe_for_reeval): Update.
952 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
953 Remove.
954objc:
955 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
956 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
957
7cb32822
NB
9582002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
959
960 * diagnostic.c (print_error_function): Remove.
961 (default_print_error_function): Rename.
962 (report_error_function): Update.
963 * diagnostic.h (print_error_function): Remove.
964 (default_print_error_function): Remove.
965 * langhooks-def.h (struct diagnostic_context): Predeclare.
966 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
967 (LANG_HOOKS_INITIALIZER): Update.
968 * langhooks.h (struct diagnostic context): Predeclare.
969 (struct lang_hooks): New hook.
970
1db02437
FS
9712002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
972
973 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
974 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
975 !flag_pic.
976 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
977 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
978 of PIC_OFFSET_TABLE_REGNUM thruout.
979 * config/rs6000/rs6000.md: Likewise.
980 * config/rs6000/darwin.h: Likewise.
981
3bf1e984
RK
982Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
983
984 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
985 unsigned HOST_WIDE_INT, not unsigned int.
986
0864c526
JJ
9872002-03-31 Jakub Jelinek <jakub@redhat.com>
988
989 PR middle-end/6096, middle-end/6098, middle-end/6099
990 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
991 CODE_LABELs.
992 (fill_slots_from_thread): Likewise.
993
105b2084
JJ
9942002-03-31 Jakub Jelinek <jakub@redhat.com>
995
996 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
997 floating fields in float regs.
998 (function_arg_record_value_2): Likewise.
999
db08fddf
HPN
10002002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
1001
1002 * config/mmix/mmix.md (define_constants): Remove misleading
1003 FIXME. Add MMIX_fp_rO_OFFSET.
1004 ("nonlocal_goto_receiver"): Don't have stack-frame address of
1005 saved rO as part of the pattern. Remove FIXME.
1006 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
1007 here, at output-time.
1008
4f31cce8
JJ
10092002-03-31 Jakub Jelinek <jakub@redhat.com>
1010
1011 PR middle-end/6100
1012 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1013 REG_BR_PRED.
1014 (output_v9branch): Likewise.
1015
ba2b7435
AO
10162002-03-31 Alexandre Oliva <aoliva@redhat.com>
1017
1018 * gcc.c: Revert previous patch for now.
1019 * config/i386/djgpp.h: Likewise.
1020
aa66aa5f 10212002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
1022
1023 * config/mmix/crti.asm (_init): Register _fini with atexit.
1024 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1025
41ba8a20
RH
10262002-03-31 Richard Henderson <rth@redhat.com>
1027
1028 PR target/3997
1029 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1030 (ASM_OUTPUT_DEF_FROM_DECLS): New.
1031
adc186ef
RH
10322002-03-31 Richard Henderson <rth@redhat.com>
1033
1034 * libgcc2.c (__bb_exit_func): Make static.
1035
a7648399
RH
1036 * config/alpha/alpha.md (trap): New.
1037
9602f5a0
RH
10382002-03-31 Richard Henderson <rth@redhat.com>
1039
1040 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1041 promoted argument types; build trap.
1042 (expand_builtin_trap): New.
1043 (expand_builtin): Use it.
1044 * stmt.c (expand_nl_goto_receivers): Likewise.
1045 * expr.h (expand_builtin_trap): Declare.
1046 * libfuncs.h (LTI_abort, abort_libfunc): New.
1047 * optabs.c (init_optabs): Init abort_libfunc.
1048
1a0a7539
AO
10492002-03-31 Alexandre Oliva <aoliva@redhat.com>
1050
1051 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1052 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 1053 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
1054 shared_name in the second copy.
1055 (init_spec): Test for duplicate
1056 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1057
b5de1a27
DM
10582002-03-30 David S. Miller <davem@redhat.com>
1059
1060 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1061 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1062
78414d74
RS
10632002-03-30 Roger Sayle <roger@eyesopen.com>
1064 Richard Henderson <rth@redhat.com>
1065
1066 * regmove.c (combine_stack_adjustments_for_block): Avoid
1067 emitting a stack adjustment of zero bytes. Let delete_insn
1068 update bb->head.
1069
33074e5f
RH
10702002-03-30 Richard Henderson <rth@redhat.com>
1071
1072 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1073 (sparc_emitting_epilogue): New.
1074 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1075 * config/sparc/sparc-protos.h: Update.
1076 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1077 (TARGET_SWITCHES): Update.
1078 * config/sparc/sparc.md (return): Remove.
1079 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1080 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1081 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1082 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1083 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1084 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1085 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1086 Remove MASK_EPILOGUE.
1087 * doc/invoke.texi: Update.
1088
606cc056
DB
10892002-03-30 Daniel Berlin <dan@dberlin.org>
1090
1091 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1092 CPP will start the file for us.
7b2e1077 1093
bdbe5b8d
RH
10942002-03-30 Richard Henderson <rth@redhat.com>
1095
1096 PR target/5446
1097 * config/ia64/ia64.c (group_barrier_needed_p): Special case
1098 prologue_allocate_stack.
1099 (ia64_single_set): Use insn codes for recognition of special
1100 cases, not rtl matching.
1101 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1102
4ab95d82
JH
1103Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
1104
1105 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1106
89a8b315
RH
11072002-03-30 Richard Henderson <rth@redhat.com>
1108
1109 PR target/6032
1110 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1111 or -fomit-frame-pointer with profiling.
1112 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1113 (FUNCTION_PROFILER): Do nothing.
1114 (PROFILE_HOOK): New.
1115 * config/sparc/sparc.c (sparc_override_options): Don't check
1116 code models for profiling.
1117 (sparc_function_profiler): Remove.
1118 (sparc_profile_hook): New.
1119 * config/sparc/sparc-protos.h: Update.
1120
30984c57
JJ
11212002-03-30 Jakub Jelinek <jakub@redhat.com>
1122
1123 PR optimization/6086
1124 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1125 of SUBREG of volatile MEM or because the MEM was mode dependent,
1126 return CLOBBER instead of unmodified SUBREG.
1127
1540f9eb
JH
1128Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
1129
89a8b315
RH
1130 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1131 when not optimizing.
1540f9eb
JH
1132
1133 * toplev.c (rest_of_compilation): Cann mark_constant_function
1134 only when optimizing.
1135
89a8b315
RH
1136 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1137 are NULL.
1540f9eb
JH
1138
1139 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1140 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1141 (try_optimize_cfg): clear all AUX fields.
1142
1143 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1144 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1145 (ix86_address_cost): Be prepared for SUBREGed registers.
1146 (legitimate_address_p): Accept SUBREGed registers.
1147
70d95bac
RH
11482002-03-29 Richard Henderson <rth@redhat.com>
1149
1150 PR target/5672
1151 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1152
d3294cd9
FS
11532002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1154
1155 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1156 for aggregate and TFmode types.
1157
a106c875
HPN
11582002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1159
1160 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1161
7d7a5d6f
RH
11622002-03-29 Richard Henderson <rth@redhat.com>
1163
6e2d670b 1164 PR target/5886
7d7a5d6f
RH
1165 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1166 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1167
30c99a84
RH
11682002-03-29 Richard Henderson <rth@redhat.com>
1169
6e2d670b 1170 PR target/6041
30c99a84
RH
1171 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1172 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1173 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1174 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1175 conditional.
1176 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1177
02a566dc
DJ
11782002-03-29 Dale Johannesen <dalej@apple.com>
1179
1180 * loop.c (combine_movables): Do allow combination of pseudos.
1181
bc3a44db
LR
11822002-03-29 Loren J. Rittle <ljrittle@acm.org>
1183
1184 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1185 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1186 No functional change except ...
1187 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
1188 * doc/install.texi (*-*-freebsd*): Document port configuration.
1189
b0c48229
NB
11902002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1191
1192 * Makefile.in (convert.o, calls.o, expmed.o): Update.
1193 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1194 Use new hooks.
1195 * builtin-types.def (BT_PTRMODE): Update.
1196 * c-common.c (type_for_size): Rename c_common_type_for_size.
1197 (type_for_mode): Similarly.
1198 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1199 Use new hook.
1200 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1201 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1202 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1203 Redefine.
1204 * c-typeck.c (common_type, comptypes, default_conversion):
1205 Use new hooks.
1206 * calls.c: Include langhooks.h.
1207 (emit_library_call_value_1): Use new hooks. Avoid redundant
1208 calls.
1209 * convert.c: Include langhooks.h
1210 (convert_to_pointer, convert_to_integer): Use new hooks.
1211 * except.c (init_eh): Similarly.
1212 * expmed.c: Include langhooks.h.
1213 (expand_mult_add): Use new hooks.
1214 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1215 try_casesi): Similarly.
1216 * fold-const.c (optimize_bit_field_compare, make_range,
1217 decode_field_reference, fold_truthop, fold): Similarly.
1218 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1219 put_var_into_stack): Similarly.
1220 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1221 LANG_HOOKS_TYPE_FOR_SIZE): New.
1222 (LANG_HOOKS_TYPES_INITIALIZER): Update.
1223 * langhooks.h (lang_hooks_for_types): New hooks.
1224 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1225 * tree.c (get_unwidened, get_narrower): Similarly.
1226 * tree.h (type_for_mode, type_for_size): Remove.
1227 * varasm.c (force_const_mem): Use new hooks.
1228 * utils2.c (nonbinary_modular_operation): Update.
1229objc:
1230 * objc-act.c (handle_impent): Update.
1231 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1232 Redefine.
1233
e206a74f
SE
12342002-03-29 Steve Ellcey <sje@cup.hp.com>
1235
1236 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1237 * config/ia64/ia64.c (basereg_operand): New.
1238 * config/ia64/ia64-protos.h (basereg_operand): Declare.
1239 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1240
7d9b6378
HPN
12412002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1242
1243 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1244 unwind information when frame_pointer_needed.
1245 (mmix_assemble_integer): Tweak wording in comment.
1246
f1e639b1
NB
12472002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1248
1249 * Makefile.in (except.o): Update.
1250 * except.c: Include langhooks.h.
1251 (init_eh): Use langhook.
1252 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1253 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1254 (LANG_HOOKS_INITIALIZER): Update.
1255 * langhooks.h (lang_hooks_for_types): New.
1256 (struct lang_hooks): Add it.
1257 * tree.c (make_lang_type_fn, make_lang_type): Remove.
1258 * tree.h (make_lang_type_fn, make_lang_type): Remove.
1259config:
1260 * alpha/alpha.c: Include langhooks.h.
1261 (alpha_build_va_list): Use langhook.
1262 * d30v/d30v.c: Include langhooks.h.
1263 (d30v_build_va_list): Use langhook.
1264 * i386/i386.c: Include langhooks.h.
1265 (ix86_build_va_list): Use langhook.
1266 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1267 * s390/s390.c: Include langhooks.h.
1268 (s390_build_va_list): Use langhook.
1269 * stormy16/stormy16.c: Include langhooks.h.
1270 (stormy16_build_va_list): Use langhook.
1271
f17f9332
JJ
12722002-03-29 Jakub Jelinek <jakub@redhat.com>
1273
1274 PR c++/5964
1275 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1276 attributes.
1277 (length): Compute variable length for branches/calls/jumps here.
1278 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1279 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1280 define branch_type attribute.
1281 (divsi3_sp32): Maximum length is 6 not 7.
1282 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1283 call_address_untyped_struct_value_sp32,
1284 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1285 * config/sparc/sparc.c (empty_delay_slot): New function.
1286 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1287 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1288
0a0440c9
JJ
12892002-03-29 Jakub Jelinek <jakub@redhat.com>
1290
1291 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1292 nonzero_bits if not needed.
1293 (nonzero_bits) [XOR]: Likewise.
1294 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1295 reg_last_set_mode and mode are both MODE_INT, but not equal.
1296 (record_value_for_reg): Compute reg_last_set_nonzero_bits
1297 in nonzero_bits_mode for MODE_INT modes.
1298
c9045f47
RH
12992002-03-28 Richard Henderson <rth@redhat.com>
1300
1301 PR target/5715
1302 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1303 to GAS. Correct drift between alternatives.
1304
f8ed1958
RH
13052002-03-28 Richard Henderson <rth@redhat.com>
1306
1307 PR target/6087
1308 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1309
54e20385
LR
13102002-03-28 Alexandre Oliva <aoliva@redhat.com>
1311
1312 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1313 emulation to the linker.
1314
13152002-03-28 Loren J. Rittle <ljrittle@acm.org>
1316
1317 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1318 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1319
8bc52806
JL
1320Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
1321
1322 * combine.c (simplify_and_const_int): Make sure to apply mask
1323 when force_to_mode returns a constant integer. PR3311.
1324
279dccc5
JDA
13252002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1326
1327 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1328
62aaa62c
GP
13292002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1330
1331 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1332 and Objective-C Dialect Options.
1333
b8de5050
RH
13342002-03-28 Richard Henderson <rth@redhat.com>
1335
1336 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1337 comparison should be done vs !=0 not >0 return code. Tidy cases.
1338
619708cc
RH
13392002-03-28 Richard Henderson <rth@redhat.com>
1340
1341 * c-decl.c (finish_function): New arg can_defer_p. Pass it
1342 on to c_expand_body.
1343 * c-tree.h (finish_function): Update decl.
1344 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1345
b1d874d7
JH
1346Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
1347
1348 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1349
f5eb5fd0
JH
1350Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
1351
1352 * rtlanal.c: Include flags.h
1353 (may_trap_p): Do not mark FP operations if trapping
1354 if !flag_trapping_math
1355 * Makefile.in (rtlanal.o): Add dependency on flag.h
1356 * ifcvt.c (noce_operand_ok): Avoid the lameness.
1357
81b4c798
ZW
13582002-03-27 Zack Weinberg <zack@codesourcery.com>
1359
1360 * mips.md: Use dconst1, not 1.0, as first argument of
1361 REAL_VALUE_LDEXP. Don't use union real_extract.
1362
55a2ea2a
AM
13632002-03-28 Alan Modra <amodra@bigpond.net.au>
1364
1365 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1366 rather than $target. Heed program_prefix and
1367 program_transform_name. Search for gas in cross-compiler case too.
1368 "test -x" rather than "test -f".
1369 (gcc_cv_ld): Likewise.
1370 (gcc_cv_nm): Heed program_prefix and program_transform_name.
1371 (gcc_cv_objdump): Likewise.
1372 * configure: Regenerate.
1373
7ffb4fd2
NB
13742002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1375
1376 * Makefile.in (attribs.o): Update.
1377 * attribs.c: Include langhooks.h.
1378 (decl_attributes): Use langhook.
1379 * c-decl.c (insert_default_attributes): Rename.
1380 * c-tree.h (c_insert_default_attributes): New.
1381 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1382 (LANG_HOOKS_INITIALIZER): Update.
1383 * langhooks.h (struct lang_hooks): New hook.
1384 * tree.h (insert_default_attributes): Remove.
1385objc:
1386 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1387
e4dbaed5
AS
13882002-03-27 Andreas Schwab <schwab@suse.de>
1389
1390 * config/i386/i386.c (classify_argument): Also check for
1391 QUAL_UNION_TYPE.
1392
18b467f1
RO
13932002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1394
1395 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1396 any more.
1397
d337d653
JH
1398Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
1399
1400 * i960.md (ret): Set PC.
1401 (nonlocal_goto): Fix expander.
1402 * builtins.c (epxand_builin_longjmp): Check that we've emitted
1403 some jump or call.
1404
218aa620
JH
1405Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
1406
1407 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1408 of libcall regions.
1409
e27a4eaf
ZD
1410Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1411
1412 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1413 assigning to BLOCK_FOR_INSN directly.
1414
8a12f34c
JH
1415Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
1416
1417 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1418
c9d892a8
NB
14192002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1420
1421 * c-common.c (c_expand_expr): Fix prototype.
1422 * c-common.h (c_expand_expr): Always declare, update.
1423 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1424 * c-objc-common.c (c_objc_common_init): No global hook.
1425 * expr.c (expand_expr): Use langhook.
1426 * expr.h (enum expand_modifier): Conditionally declare.
1427 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1428 (LANG_HOOKS_INITIALIZER): Update.
1429 * langhooks.c (lhd_expand_expr): New.
1430 * langhooks.h (struct lang_hooks): New hook.
1431 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1432 (lang_independent_init): Don't default hook.
1433objc:
1434 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1435
6dad5a56
RH
14362002-03-27 Richard Henderson <rth@redhat.com>
1437
1438 PR target/6054
1439 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1440 TARGET_CONST_GP. Simplify conditions.
1441
59f96879
RH
14422002-03-27 Richard Henderson <rth@redhat.com>
1443
1444 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1445 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1446 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1447
f3f1190d
DS
14482002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
1449
1450 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1451 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1452 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1453 Remove unnecessary masks.
1454 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1455 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1456 -mwindows, -mdll switches and their negations.
1457
31c816cf
NB
14582002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1459
1460 * gcc-common.c (lang_mark_false_label_stack): Remove.
1461 * ggc.h (lang_mark_false_label_stack): Similarly.
1462
7b2e1077 14632002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
1464
1465 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1466
1467 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
1468 or __rtems_ is defined.
1469
1ef9531b
RH
14702002-03-26 Richard Henderson <rth@redhat.com>
1471
1472 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
1473 if a non-trivial load was emitted.
1474 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
1475 in high+extra+low case.
1476
300d4093
RH
14772002-03-26 Richard Henderson <rth@redhat.com>
1478
1479 * config.gcc (sparc*-solaris): Use float_format=sparc.
1480
b3689904
RH
14812002-03-26 Richard Henderson <rth@redhat.com>
1482
1483 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1484 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
1485 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
1486 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
1487 (WINT_TYPE_SIZE): Fix at 32.
1488
1eefb6c1
RH
14892002-03-26 Richard Henderson <rth@redhat.com>
1490
1491 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
1492 until after eh landing pad generation.
1493 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
1494 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
1495
361ea006
RH
14962002-03-26 Richard Henderson <rth@redhat.com>
1497
1498 * expr.h (ADD_PARM_SIZE): One more convert for INC.
1499
1de38a88
PE
15002002-03-26 Phil Edwards <pme@gcc.gnu.org>
1501
1502 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
1503 and warning switches.
1504 (cc1_options): Likewise.
1505
d7e60e95 15062002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 1507
d7e60e95
HB
1508 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
1509 Restore more of the signal context. Set no_reg_stack_frame.
1510 * config/ia64/unwind-ia64.c (unw_state_record):
1511 Add no_reg_stack_frame, comments.
1512 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
1513 (uw_update_context): Adjust bsp when unwinding from leaf,
1514 but not signal frame.
1515
7032923b
DE
15162002-03-26 David Edelsohn <edelsohn@gnu.org>
1517
1518 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
1519
8be56275
BW
15202002-03-26 Bob Wilson <bob.wilson@acm.org>
1521
1522 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
1523
56fbb855
RE
15242002-03-26 Richard Earnshaw <rearnsha@arm.com>
1525
1526 PR target/5621
1527 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
1528 "Add a pool_range attribute", which was lost during the ARM/Thumb
1529 merge.
1530
3437320b
BW
15312002-03-26 Bob Wilson <bob.wilson@acm.org>
1532
1533 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
1534 a register into the MAC16 accumulator.
1535
173028e5
AC
15362002-03-26 Andrew Cagney <ac131313@redhat.com>
1537
1538 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
1539 (Warning Options): Document -Wswitch-enum.
1540 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
1541 -Wswitch.
1542 (warn_switch_enum): Define variables.
1543 * flags.h (warn_switch_enum): Declare variables.
1544 * stmt.c (expand_end_case_type): When warn_switch_enum /
1545 -Wswitch-enum, perform switch checks.
1546 Fix PR c/5044.
7b2e1077 1547
e14365a7
RE
15482002-03-26 Richard Earnshaw <rearnsha@arm.com>
1549
1550 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
1551 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
1552 (reload_muladdsi_compare0_scratch): Delete.
1553
46fc709d
LR
15542002-03-26 Loren J. Rittle <ljrittle@acm.org>
1555
1556 * doc/install.texi (*-*-freebsd*): Update.
1557
f36dea3c
RH
15582002-03-26 Richard Henderson <rth@redhat.com>
1559
8e5fe23f
RH
1560 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
1561 (SUB_PARM_SIZE): Cast DEC to ssizetype.
1562
1563 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
1564 types from the normal argument frame.
1565
f36dea3c
RH
1566 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
1567 variable sized objects by reference.
1568 (sparc_va_arg): Receive them by reference too.
1569
1447dc69
HP
15702002-03-26 Hartmut Penner <hpenner@de.ibm.com>
1571
1572 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 1573 code to not restoring global registers.
1447dc69 1574
4f0ade92
NB
15752002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
1576
1577 * Makefile.in (ggc-common.o): Update.
1578 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
1579 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1580 * c-tree.h (c_mark_tree): New.
1581 * ggc-common.c: Include langhooks.h.
1582 (gcc_mark_trees): Use new langhook.
1583 * ggc-callbacks.c: Delete file.
1584 * ggc.h (lang_mark_tree): Remove.
1585 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
1586 (LANG_HOOKS_INITIALIZER): Update.
1587 * langhooks.h (struct lang_hooks): New hook.
1588objc:
1589 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1590
caba570b
ZW
15912002-03-25 Zack Weinberg <zack@codesourcery.com>
1592
1593 * doc/cpp.texi: Exclude entire Top node from printed manual.
1594 Move option index after directive index. Insert page breaks
1595 before GFDL and concept index. Index environment variables
1596 with command line options.
1597 * doc/cppenv.texi: Use @vtable for environment variable list.
1598 Add paragraph explaining semantics of empty elements in path
1599 variables. Exclude a cross-reference to Fishkill from the
1600 manpage. Remove an unnecessary cross-reference of the entry
1601 right above the referer. Don't use @anchor in text that goes
1602 into manpage.
1603 * doc/cppopts.texi: Cross-reference the environment variables
1604 section, not the specific environment variable, for consistency.
1605
6b2e80b7
RH
16062002-03-25 Richard Henderson <rth@redhat.com>
1607
1608 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
1609 anywhere in the block. Don't refer to insns that have been
1610 removed from the chain. Iterate backward through the new insns.
1611 Don't refer to edges that have been removed.
1612
67e469d7
AM
16132002-03-26 Alan Modra <amodra@bigpond.net.au>
1614
1615 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
1616 test for overflow of constant.
1617
f2356393
RE
16182002-03-25 Richard Earnshaw <rearnsha@arm.com>
1619
1620 PR target/2623
1621 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
1622 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
1623 these patterns on arm_archv4.
1624
355426ab
DS
16252002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
1626
1627 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
1628 int".
1629
15e5ad76
ZW
16302002-03-25 Zack Weinberg <zack@codesourcery.com>
1631
1632 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
1633 float_handled, float_handler, float_signal, set_float_handler,
1634 and do_float_handler. Set handler for SIGFPE to crash_signal.
1635 * toplev.h: Don't prototype do_float_handler.
1636
1637 * c-lex.c: Fold parse_float into lex_number. Make warning
1638 about portability of hex float constants more informative, and
1639 don't issue it on top of a syntax error.
1640 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
1641 their callers.
1642 * real.h: Define REAL_VALUE_ABS here...
1643 * simplify-rtx.c: ... not here. Fold check_fold_consts,
1644 simplify_unary_real, simplify_binary_real, and
1645 simplify_binary_is2orm1 into their callers.
1646 * tree.c: Fold build_real_from_int_cst_1 into caller.
1647
1648 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
1649
1650 * tsystem.h: Include float.h here...
1651 * libgcc2.c: ... not here.
1652
56ae9405
NC
16532002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
1654
1655 Fixes for: PR bootstrap/3591, target/5676
1656 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
1657 defined. Do not disable exceptions or rtti.
1658 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
1659 mcore.h. Disable exceptions and rtti, since they are not
1660 supported by EPOC.
1661
c88770e9
NB
16622002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
1663
1664 * c-decl.c (maybe_build_cleanup): Remove.
1665 * expr.c (expand_expr): Use langhook.
1666 * langhooks-def.h (lhd_return_null_tree,
1667 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
1668 (LANGHOOKS_INITIALIZER): Update.
1669 * langhooks.c (lhd_return_null_tree): New.
1670 * langhooks.h (struct lang_hooks): New hook.
1671 * tree-inline.c (initialize_inlined_parameters): Use langhook.
1672 * tree.h (maybe_build_cleanup): Remove.
1673
2ed1f154
JJ
16742002-03-25 Jakub Jelinek <jakub@redhat.com>
1675
1676 * regrename.c (build_def_use): Move recog_memoized
1677 before extract_insn.
1678
6ddae612
JJ
16792002-03-25 Jakub Jelinek <jakub@redhat.com>
1680
1681 PR target/6043
1682 * expr.c (emit_group_store): Handle storing into CONCAT.
1683
ea475b23
JJ
16842002-03-25 Jakub Jelinek <jakub@redhat.com>
1685
1686 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
1687 corresponding MATCH_DUP.
1688
e7d482b9
RH
16892002-03-24 Richard Henderson <rth@redhat.com>
1690
cd39fc13
RH
1691 * unroll.c (unroll_loop): Zero label_map.
1692
e7d482b9
RH
1693 * gcse.c: Include except.h.
1694 * Makefile.in (gcse.o): Update.
1695
1bd6476f
RH
16962002-03-24 Richard Henderson <rth@redhat.com>
1697
1698 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
1699 Do resolve_unique_section before shared data clause.
1700
2e6c150a
RH
17012002-03-24 Richard Henderson <rth@redhat.com>
1702
1703 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
1704
b29afcf8
RH
17052002-03-24 Richard Henderson <rth@redhat.com>
1706
15e5ad76 1707 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
1708 generated in the middle of a block. Do global life update if
1709 zapped EH edges.
1710
05ed1296
RH
17112002-03-24 Richard Henderson <rth@redhat.com>
1712
1713 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
1714
3ddbb8a9
NB
17152002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1716
1717 preprocessor/3951
15e5ad76 1718 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
1719 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
1720 (init_dependency_output): Don't make no_output decision here.
1721
740b77b6
AC
17222002-03-24 Andrew Cagney <ac131313@redhat.com>
1723
1724 * stmt.c (check_for_full_enumeration_handling): Remove tests of
1725 warn_switch. Update description.
1726 (expand_end_case_type): Call check_for_full_enumeration_handling
1727 when warn_switch.
1728
7590cfd0
SC
17292002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1730
1731 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
1732 (m68hc11_split_move): Call it to see if the source and destination
1733 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 1734 source an offsetable memory operand and generate an add.
7590cfd0 1735
2e3d3481
SC
17362002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1737
1738 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
1739 register for operand 2.
1740 ("*subsi3_zero_extendqi"): Likewise.
1741 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
1742 bits so that it is compatible with a pop.
1743 ("*andhi3_gen"): Likewise.
1744 ("xorhi3"): Likewise.
1745
2784528c
NB
17462002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1747
1748 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
1749 -pedantic here...
1750 (cpp_post_options): ... not here.
1751
aaf93206
NB
17522002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1753 Aldy Hernandez <aldyh@redhat.com>
1754
1755 Removal of separate preprocessor cpp0.
1756
1757 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
1758 cpp0, install-common): Update.
1759 * c-common.c (flag_preprocess_only): New.
1760 (c_common_init): Preprocess for -E.
1761 * c-common.h (flag_preprocess_only): New.
1762 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
1763 * c-objc-common.c (c_init_decl_processing): Exit quickly
1764 for NULL return from c_common_init.
1765 * cpplib.h (cpp_preprocess_file): New.
1766 * cppmain.c (main, general_init, pfile, progname): Remove.
1767 (do_preprocessing): Rename cpp_preprocess_file, don't call
1768 cpp_finish. Don't close stdout here.
1769 (setup_callbacks): Update prototype.
1770 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
1771 Update.
1772 * tradcpp.c (main): Ignore -quiet.
1773objc:
1774 * lang-specs.h (default_compilers): Preprocess with cc1obj.
1775
c6e6f5c1
RH
17762002-03-24 Richard Henderson <rth@redhat.com>
1777
1778 PR optimization/5742
1779 * machmode.def: Add inner mode field to complex modes.
1780 * config/mips/mips.c (mips_function_value): Always define. Add
1781 new argument to handle libcalls.
1782 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
1783 (FUNCTION_VALUE): Likewise.
1784 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
1785 * config/mips/mips-protos.h: Update.
1786
d88e57d1
RH
17872002-03-23 Richard Henderson <rth@redhat.com>
1788
1789 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
1790 * config/sparc/sparc-protos.h: Update.
1791 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
1792
6dfaf9ba
RH
17932002-03-23 Richard Henderson <rth@redhat.com>
1794
1795 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
1796 _start or _init begins the text segment.
1797
0c769cf8
DE
17982002-03-23 David Edelsohn <edelsohn@gnu.org>
1799
1800 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
1801 not HOST_WIDEST_INT.
1802 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
1803
64e92a26
RE
18042002-03-23 Richard Earnshaw <rearnsha@arm.com>
1805
1806 PR java/5489
1807 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
1808 operand argument to output_return_instruction.
15e5ad76 1809 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
1810 const_true_rtx then just return.
1811 (arm_print_operand, case 'D'): If the operand is const_true_rtx
1812 then abort.
1813
d6961341
AC
18142002-03-23 Andrew Cagney <ac131313@redhat.com>
1815
1816 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
1817 (Warning Options): Document -Wswitch-default.
1818 * toplev.c (W_options): Add -Wswitch-default. Update comment on
1819 -Wswitch.
1820 (warn_switch_default): Define variable.
1821 (warn_switch): Update comment.
1822 * flags.h (warn_switch_default): Declare variable.
1823 (warn_switch): Update comment.
1824 * stmt.c (expand_end_case): Check for and, when
1825 warn_switch_no_default, warn of a missing default case.
15e5ad76 1826
d4c5ac1f
AM
18272002-03-23 Alan Modra <amodra@bigpond.net.au>
1828
bbaa9790
AM
1829 * real.h (N): Special case 128 bit doubles.
1830
d4c5ac1f
AM
1831 * combine.c (simplify_comparison): When widening modes, ignore
1832 sign extension on CONST_INTs.
1833
84bf8c2c
BW
18342002-03-22 Bob Wilson <bob.wilson@acm.org>
1835
1836 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
1837 passed to adjust_address. Fix comment formatting.
1838
1839
b216cd4a
ZW
18402002-03-22 Zack Weinberg <zack@codesourcery.com>
1841
1842 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
1843 Always make REAL_VALUE_TYPE a struct containing an array of
1844 HOST_WIDE_INT, not a double. Tidy up the code deciding how
1845 big it is. Don't declare or use union real_extract.
1846
1847 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
1848 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
1849 (print_operand), config/arm/arm.c (output_move_double),
1850 config/arm/arm.md (consttable_4, consttable_8),
1851 config/romp/romp.c (output_fpops), config/s390/s390.h
1852 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
1853 (xtensa_output_literal): Don't use union real_extract.
1854
1855 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
1856 (sfmode_constant_to_ulong), config/ns32k/merlin.h
1857 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
1858 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
1859 (PRINT_OPERAND): Don't use local version of union
1860 real_extract.
1861
1862 * config/convex/convex.c (check_float_value), config/vax/vax.c
1863 (vax_float_literal), config/m88k/m88k.md (divdf3),
1864 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
1865 config/pdp11/pdp11.c (output_move_quad): Don't do host
1866 arithmetic on target floating point quantities.
1867
1868 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
1869 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
1870
1871 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
1872 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
1873
1874 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
1875 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
1876 INFINITY.
1877 * print-rtl.c (print_rtx): Disable code which needs
1878 floating-point emulator.
1879 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
1880 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
1881 depending on HOST_FLOAT_FORMAT to be defined properly.
1882
1883 * config/1750a/1750a.c (get_double, float_label): Delete.
1884 (print_operand): Delete huge commented-out chunk. Use
1885 REAL_VALUE_TO_DECIMAL.
1886 * config/1750a/1750a-protos.h: Delete prototypes of deleted
1887 functions.
1888 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
1889 IEEE_FLOAT_FORMAT.
1890 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
1891 Use REAL_VALUE_TO_DECIMAL as ELF version does.
1892 * config/m88k/m88k.c (real_power_of_2_operand,
1893 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
1894 real_extract out of the union; run the input through
1895 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
1896 from that into the union.
1897 * config/pdp11/pdp11.c (output_move_double): Rearrange
1898 parentheses to make automatic indenter happy.
1899
1900 * doc/tm.texi (Cross-compilation): Rename node to "Floating
1901 Point" and rewrite to describe current situation. Also adjust
1902 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
1903 match code.
1904 * doc/rtl.texi: Adjust cross reference.
1905
a8cacfd2
BW
19062002-03-22 Bob Wilson <bob.wilson@acm.org>
1907
1908 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
1909 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
1910 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
1911 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
1912 prevent use of sp as a reload register.
1913 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
1914 non_acc_reg_operand.
1915 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
1916 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
1917 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
1918 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
1919
d4e6133f
NB
19202002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
1921
b216cd4a
ZW
1922 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
1923 * cpplex.c (unterminated): Delete.
1924 (parse_string): No string literal may extend over multiple
1925 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
1926 * cppmain.c (scan_translation_unit): Strings are single-line.
1927
b216cd4a 1928 * doc/cpp.texi: Update to match.
d4e6133f 1929
65e6c005
JJ
19302002-03-22 Jakub Jelinek <jakub@redhat.com>
1931
1932 PR optimization/5854
1933 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
1934 Shut up warnings.
1935 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
1936 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
1937 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
1938 const0 if scratch register was not allocated.
1939 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
1940 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
1941 with GEN_INT (...).
1942 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
1943 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
1944 with GEN_INT (...) everywhere. Remove constraints in define_split
1945 patterns.
1946 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
1947 require scratch register for setting 0 into regs/non-pushable memory.
1948
7f48c9e1
AO
19492002-03-22 Alexandre Oliva <aoliva@redhat.com>
1950
1951 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
1952 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
1953
909de5da
PE
19542002-03-22 Phil Edwards <pme@gcc.gnu.org>
1955
1956 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
1957 * cppinit.c (cpp_create_reader): On by default.
1958 (cpp_handle_option): Handle -W[no-]endif-labels.
1959 (cpp_post_options): Also enable if -pedantic.
1960 * cpplib.c (do_else): Use it.
1961 (do_endif): Likewise.
1962 * doc/cppopts.texi: Document new option.
1963 * doc/invoke.texi: Document new option.
1964
d8bf17f9
LB
19652002-03-22 Lars Brinkhoff <lars@nocrew.org>
1966
1967 * config/i386/i386.c, config/i386/i386.md: Change all occurences
1968 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
1969
70e0ccd0
AO
19702002-03-22 Alexandre Oliva <aoliva@redhat.com>
1971
1972 * flow.c (calculate_global_regs_live): Clear aux fields of
1973 ENTRY and EXIT.
1974
68882f0f
JJ
19752002-03-22 Jakub Jelinek <jakub@redhat.com>
1976
1977 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
1978 REG or MEM subregs, pass rtx * instead of rtx to it.
1979 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
1980 rtx * instead of rtx to alter_subreg.
1981 * config/m32r/m32r.c (gen_split_move_double): Likewise.
1982 * config/pj/pj.c (pj_output_rval): Likewise.
1983
648fe28b
RH
19842002-03-22 Richard Henderson <rth@redhat.com>
1985
1986 PR target/3177
1987 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
1988 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
1989 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
1990 (ia64_expand_prologue): Look at int_regs, not words, for number
1991 of incomming int regs.
1992
e8dcd824
AM
19932002-03-22 Andrew MacLeod <amacleod@redhat.com>
1994
1995 * expr.c (expand_expr): A RESULT_DECL is part of a call.
1996
96327cdc
JH
1997Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
1998
1999 * toplev.c (flag_loop_optimize, flag_crossjumping):
2000 New static variables.
2001 (rest_of_compilation): Conditionalize crossjumping and
2002 loop optimizer.
2003 (parse_options_and_default_flags): Default loop_optimize and
2004 crossjumping.
2005 (lang_independent_options): Add -fcrossjumping and -floop-optimize
2006 * invoke.texi (crossjumping, loop-optimize): Document.
2007
bc185257
RS
20082002-03-22 Richard Sandiford <rsandifo@redhat.com>
2009
2010 * real.c (eiisneg): Move outside #ifdef NANS.
2011
0a2ed1f1
JH
2012Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
2013
2014 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2015 frequencies match; avoid match on different loop depths.
2016 (try_crossjump_to_bb): Kill tests that no longer brings time
2017 savings.
2018 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2019 updating code.
2020 (split_edge): Likewise.
2021
2022 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2023 variable.
2024
2025 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2026 * cfgrtl.c: Include insn-config.h
2027 (split_block) Dirtify block in presence of conditional execution
2028
4d72536e
RS
20292002-03-22 Richard Sandiford <rsandifo@redhat.com>
2030
2031 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2032 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2033 (function_arg): Constify CUMULATIVE_ARGS.
2034 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2035 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2036 (UNITS_PER_DOUBLE): New macro.
2037 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
2038 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
2039 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
2040 fp_regs and stack_words.
2041 (EABI_FLOAT_VARARGS_P): New macro.
2042 * config/mips/mips.c (struct mips_arg_info): New.
2043 (mips_arg_info): New function.
2044 (function_arg_advance): Use it. Add adjustment instructions here
2045 rather than in function_arg.
2046 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
2047 for VOIDmode at the beginning of the function.
2048 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
2049 (function_arg_pass_by_reference): Likewise.
2050 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2051 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2052 (mips_va_start): Likewise. Use the new stack_words field of
2053 CUMULATIVE_ARGS to set up overflow area. Reformat.
2054 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
2055 doubles and other types, aligning the overflow pointer for non-doubles
2056 too. Remove some code duplication. Replace hard-coded constants.
2057
e6f884cd
RS
20582002-03-22 Richard Sandiford <rsandifo@redhat.com>
2059
2060 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2061 (CLASS_UNITS): Undefine.
2062 (CLASS_MAX_NREGS): Use FP_INC.
2063 * config/mips/mips.c (compute_frame_size): Likewise.
2064 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2065
10cf9bde
NB
20662002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
2067
2068 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2069 prototype, and handle lexing numbers and identifiers.
2070 (parse_identifier): Update to new form of parse_slow.
2071 (parse_number): Fast path only, use parse_slow otherwise.
2072 (_cpp_lex_direct): Update calls to parse_number.
2073
fbc2782e
DD
20742002-03-21 DJ Delorie <dj@redhat.com>
2075
2076 * bb-reorder.c (make_reorder_chain_1): Protect against
2077 when redundant edges are omitted.
2078 * predict.c (dump_prediction): Likewise.
2079
fba39eaf
RH
20802002-03-21 Richard Henderson <rth@redhat.com>
2081
2082 PR target/5996
2083 * fixinc/inclhack.def (solaris_stdio_tag): New.
2084 * fixinc/fixincl.x: Regenerate.
2085
eba80994
EB
20862002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2087
2088 PR c/5597
2089 * c-typeck.c (process_init_element): Flag non-static
2090 initialization of a flexible array member as illegal.
2091
2a78758b
AM
20922002-03-22 Alan Modra <amodra@bigpond.net.au>
2093
2094 * config/rs6000/t-linux64: New.
2095 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2096 t-ppccomm. Use t-rs6000 and t-linux64.
2097 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
2098 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2099 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2100 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 2101
2cb921f4
AH
21022002-03-21 Aldy Hernandez <aldyh@redhat.com>
2103
eba80994
EB
2104 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2105 flag_really_no_inline instead of optimize == 0.
2cb921f4 2106
eba80994 2107 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 2108
eba80994 2109 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 2110
eba80994 2111 * flags.h (flag_really_no_inline): New.
2cb921f4 2112
659e5a7a 2113 * c-common.c (c_common_post_options): Initialize
eba80994 2114 flag_really_no_inline.
2cb921f4 2115
eba80994 2116 * toplev.c (flag_really_no_inline): New.
2cb921f4 2117
239b8b9d
JJ
21182002-03-21 Jakub Jelinek <jakub@redhat.com>
2119
2120 * config/avr/avr.md (length): Fix length computation for
2121 conditional branches.
2122
43577e6b
NB
21232002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
2124
2125 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2126 sdbout.o, profile.o): Update.
2127 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2128 langhook.
2129 * c-common.h (gettags): Move here from tree.h.
2130 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2131 insert_block, getdecls, kept_level_p, global_bindings_p): New.
2132 * dbxout.c (dbxout_init): Use getdecls langhook.
2133 * expr.c (expand_expr): Use insert_block langhook.
2134 * fold-const.c: Include langhooks.h.
2135 (fold_range_test, fold_binary_op_with_conditional_arg,
2136 fold): Use global_bindings_p langhook.
2137 * integrate.c (expand_inline_function): Use insert_block langhook.
2138 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2139 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2140 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2141 LANG_HOOKS_GETDECLS): New.
2142 (LANG_HOOKS_INITIALIZER): Update.
2143 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2144 langhook.
2145 * langhooks.h (struct lang_hooks_for_decls): New.
2146 (struct lang_hooks): Update.
2147 * profile.c: Include langhooks.h.
2148 (output_func_start_profiler): Use new langhooks.
2149 * sdbout.c: Include langhooks.h.
2150 (sdbout_init, sdbout_finish): Use getdecls langhook.
2151 * stmt.c: Include langhooks.h.
2152 (expand_fixup, fixup_gotos): Use new langhooks.
2153 * stor-layout.c: Include langhooks.h.
2154 (variable_size): Use global_bindings_p langhook.
2155 * toplev.c (compile_file): Use getdecls langhook.
2156 * tree-inline.c (remap_block): Use insert_block langhook.
2157 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2158 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2159
5b19b10c
RH
21602002-03-21 Richard Henderson <rth@redhat.com>
2161
2162 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2163 constants in .data when -fpic.
2164
e05af335
GP
21652002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2166
2167 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2168 where appropriate.
2169
60ffc997
TT
21702002-03-21 Tom Tromey <tromey@redhat.com>
2171
2172 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
2173
75897075
RK
2174Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2175
a73afd69 2176 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 2177
75897075
RK
2178 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2179
312687cf
EB
21802002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2181 Richard Henderson <rth@redhat.com>
2182
2183 PR c/5354
2184 * c-common.c (c_expand_expr): Preserve result of a statement
2185 expression if needed.
2186
f0e1f482
JJ
21872002-03-21 Jakub Jelinek <jakub@redhat.com>
2188
2189 PR bootstrap/4195
2190 * genrecog.c (maybe_both_true_mode): Remove.
2191 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2192 * machmode.def (Pmode): Likewise.
2193
c14b9960
JW
2194Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
2195
2196 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2197 (nonlocal_mentioned_p_1): New function.
2198 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2199 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2200 (mark_constant_function): Recognize pure functions.
2201 * rtl.h (global_reg_mentioned_p): New prototype.
2202 * rtlanal.c (global_reg_mentioned_p,
2203 global_reg_mentioned_p_1): New function.
2204
aaa4d130
RO
22052002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2206
2207 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2208 UNIX assert.h.
2209 * fixinc/fixincl.x: Regenerate.
2210
e5c4bd1b
JM
22112002-03-20 Jason Merrill <jason@redhat.com>
2212
2213 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2214
852b81bb
MM
22152002-03-20 Michael Meissner <meissner@redhat.com>
2216
2217 * doc/invoke.texi (Optimize Options): Document that -O2 sets
2218 -fstrict-aliasing.
2219
86d8c251
BW
22202002-03-20 Bob Wilson <bob.wilson@acm.org>
2221
2222 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2223 ".literal_position" directive before the constant pool.
2224
0a39c350
GP
22252002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2226
2227 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2228 Add Craig Rodrigues.
2229 Add Brad Lucier to testers.
2230
71a83373
JJ
22312002-03-20 Jakub Jelinek <jakub@redhat.com>
2232
2233 PR target/4792
2234 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2235 to if_then_else.
2236 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2237 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2238 instead of insn_extract.
2239
a29b099d
JJ
22402002-03-20 Jakub Jelinek <jakub@redhat.com>
2241
2242 PR bootstrap/4192
71a83373 2243 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
2244
2245 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2246 stmt if some case has been output.
2247
048b1c95
JJ
22482002-03-20 Jakub Jelinek <jakub@redhat.com>
2249
2250 PR c/5972
2251 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2252 movsfcc_1, movdfcc_1): Add %O2.
2253 * config/i386/i386.c (print_operand): Handle %ON.
2254 Print . before float condition codes in Sun as cmov syntax.
2255 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2256 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2257 no longer true.
2258
f4864588
PB
22592002-03-20 Philip Blundell <pb@nexus.co.uk>
2260
2261 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2262 return instruction if PC was popped.
2263
3a307de4
BW
22642002-03-20 Bob Wilson <bob.wilson@acm.org>
2265
2266 * config/xtensa/xtensa.md: Remove unused type attributes.
2267 (adddi_carry, subddi_carry): Change type attribute to "multi".
2268
048b1c95 22692002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
2270
2271 PR optimization/5999, middle-end/5731
2272 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2273 multiplications by reciprocals.
2274
7afff7cf
NB
22752002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
2276
2277 * Makefile.in: Update.
2278 * c-common.c: Include langhooks.h.
2279 (inline_forbidden_p): Use new hook.
2280 * diagnostic.c: Include langhooks.h.
2281 (format_with_decl, announce_function,
2282 default_print_error_function): Use new hook.
2283 * dwarf2out.c (dwarf2_name): Use new hook.
2284 * function.c: Include langhooks.h.
2285 (init_function_start): Use new hook.
2286 * langhooks-def.h (lhd_decl_printable_name): New.
2287 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2288 (LANGHOOKS_INITIALIZER): Update.
2289 * langhooks.c (lhd_decl_printable_name): New.
2290 * langhooks.h (struct lang_hooks): New hook.
2291 * toplev.c (decl_name, decl_printable_name): Remove.
2292 (open_dump_file): Use new hook.
2293 (process_options): Remove old hook.
2294 * tree.h (decl_printable_name): Remove.
2295objc:
2296 * objc-act.c (objc_init): Remove old hook.
2297 (objc_printable_name): Export.
2298 * objc-act.h (objc_printable_name): New.
2299 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2300
f78ce0b7
JB
23012002-03-19 Jim Blandy <jimb@redhat.com>
2302
2303 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2304 the start_source_file debug hook, not the current line number.
2305
15b5aef3
RH
23062002-03-19 Richard Henderson <rth@redhat.com>
2307
2308 * flow.c (EH_USES): Provide default.
2309 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2310 * doc/tm.texi (EH_USES): New.
2311
2312 * config/ia64/ia64.c (ia64_eh_uses): New.
2313 * config/ia64/ia64-protos.h: Update.
2314 * config/ia64/ia64.h (EH_USES): New.
2315
02a7a3fd
RH
23162002-03-19 Richard Henderson <rth@redhat.com>
2317
2318 * varasm.c (output_constant_def): Fix stupid typo.
2319
93f82d60
RH
23202002-03-19 Richard Henderson <rth@redhat.com>
2321
2842be05 2322 PR 5879
93f82d60
RH
2323 * except.c (current_function_has_exception_handlers): New.
2324 * except.h: Declare it.
2325 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2326 Combine tests that disable all sibcalls for the function.
2327
ed4fbfa0
OH
23282002-03-19 Olivier Hainque <hainque@act-europe.fr>
2329
2330 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2331 for INTEGER_CST.
2332
ebf0e888
RH
23332002-03-19 Richard Henderson <rth@redhat.com>
2334
1e82682b 2335 PR 5977, 5991
ebf0e888
RH
2336 * config/ia64/ia64.c: Revert 2002-03-01 patch.
2337 * config/ia64/ia64.h (INIT_EXPANDERS): New.
2338
e37b38d7
JB
23392002-03-19 Jim Blandy <jimb@redhat.com>
2340
2341 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2342 name, even if the replacement list contains no tokens, as required
2343 by Dwarf.
2344
2a4ea326
JM
23452002-03-19 Jason Merrill <jason@redhat.com>
2346
f9d09ae5
JM
2347 * varasm.c (globalize_decl): Get the name from the RTL, not
2348 DECL_ASSEMBLER_NAME.
2349
2a4ea326
JM
2350 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2351
99b96edb
BW
23522002-03-19 Bob Wilson <bob.wilson@acm.org>
2353
2354 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2355 subdi_carry): Define.
2356
3774b567
DE
23572002-03-19 David Edelsohn <edelsohn@gnu.org>
2358
2359 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2360 about -fpic/-fPIC if extra_warnings set.
2361
21ef78aa
DE
23622002-03-19 David Edelsohn <edelsohn@gnu.org>
2363
2364 * expr.c (expand_expr): Sign-extend CONST_INT generated from
2365 TREE_STRING_POINTER.
0c2fdcdf 2366 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 2367
91d4b3fd
RK
2368Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2369
2370 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2371 in favor of SP if FRAME_POINTER_REQUIRED is false.
2372
2496c7bd
LB
23732002-03-19 Lars Brinkhoff <lars@nocrew.org>
2374
2375 * emit-rtl.c (gen_int_mode): New function.
2376 * rtl.h: Prototype for it.
2377 * combine.c (make_extraction, simplify_comparison), expmed.c
2378 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2379 (convert_modes, store_field), optabs.c (expand_fix),
2380 simplify-rtx.c (neg_const_int, simplify_unary_real),
2381
2382 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2383 Use it instead of GEN_INT (trunc_int_for_mode (...)).
2384
f735a153
JJ
23852002-03-19 Jakub Jelinek <jakub@redhat.com>
2386
2387 PR c/5656
2388 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2389 convert_parm_for_inlining.
2390 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2391 Define.
2392 * langhooks-def.h: Likewise.
2393 * objc/objc-lang.c: Likewise.
2394 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2395 function.
2396 * tree-inline.c (initialize_inlined_parameters):
2397 Call convert_parm_for_inlining lang hook if needed.
2398 * c-typeck.c (c_convert_parm_for_inlining): New function.
2399 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2400
1929c971
MM
24012002-03-18 Mark Mitchell <mark@codesourcery.com>
2402
b216cd4a 2403 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
2404 can be destroyed after expanding the argument.
2405 (expand_call): Likewise.
2406
c79ca0ac
EC
24072002-03-15 Eric Christopher <echristo@redhat.com>
2408
2409 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2410 Fix register preference on last change.
2411 * config/mips/mips.c (mips_return_in_memory): New function.
2412 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2413 * config/mips/mips-protos.h: Declare.
2414 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2415 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2416
07e2e444
AO
24172002-03-18 Alexandre Oliva <aoliva@redhat.com>
2418
1bfbbbcf
AO
2419 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2420 a register too.
2421 (anddi3, iorsi3): Likewise.
2422
c066429e
AO
2423 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2424 use %gprel for symbols that are going to be placed in linkonce
2425 sections.
2426
07e2e444
AO
2427 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2428 RETURN_ADDRESS_POINTER_REGNUM to $ra.
2429 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2430 not needed. Disregard leaf_function_p().
2431 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2432 mips16 frame pointer.
2433 * config/mips/mips.md (store ra): Only to small SP offsets.
2434 2001-08-22 Graham Stott <grahams@redhat.com>
2435 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2436 return a REG rtx for the return address register.
2437
eb8e00ea
BW
24382002-03-18 Bob Wilson <bob.wilson@acm.org>
2439
2440 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2441 constant-pool addresses as "mode-dependent".
2442 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2443
cbb92744
JJ
24442002-03-18 Jakub Jelinek <jakub@redhat.com>
2445
2446 PR target/5740
2447 * expr.c (emit_group_load): Use extract_bit_field if
2448 needed for CONCAT arguments.
2449
657d9449
RE
24502002-03-18 Richard Earnshaw <rearnsha@arm.com>
2451
91f3a802 2452 PR target/4863
657d9449
RE
2453 * arm.md (tablejump): Make this a define_expand. For PIC add the
2454 offset to the base of the table.
2455 (thumb_tablejump): Matcher for Thumb tablejump insn.
2456 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2457 as the difference of two labels.
2458 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2459 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2460 tables in the code.
2461 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2462 * arm.c (get_jump_table_size): If the table is not in the text
2463 section, return zero.
c79ca0ac 2464
5d5603e2
BS
24652002-03-18 Bernd Schmidt <bernds@redhat.com>
2466
2467 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
2468 of gen_rtx_SUBREG.
2469 (arm_reload_out_hi): Use gen_lowpart instead of
2470 gen_rtx_SUBREG to access QImode components.
2471 * config/arm/arm.md: Disable zero_extend split for QImode
2472 subregs in BIG_ENDIAN mode.
2473 (storehi_bigend): Match use of least significant byte.
2474 (storeinthi): Remove extraneous SUBREG.
66c17b64 2475 Add missing construction of operands[2].
5d5603e2
BS
2476 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
2477 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
2478 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
2479
df15fbc7
AH
24802002-03-18 Aldy Hernandez <aldyh@redhat.com>
2481
2496c7bd
LB
2482 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
2483 any_operand.
df15fbc7 2484
b83b7fa3
RH
24852002-03-17 Richard Henderson <rth@redhat.com>
2486
2487 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
2488 explicitly.
2489
6f7c00fe
HPN
24902002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2491
2492 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
2493 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
2494
155038f2
KG
24952002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2496
720d42fa
KG
2497 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
2498
155038f2
KG
2499 * predict.c (estimate_bb_frequencies): Delete unused variables.
2500
e6542f4e
RH
25012002-03-17 Richard Henderson <rth@redhat.com>
2502
2503 * config/ia64/ia64.c (ia64_attribute_table): Move before
2504 targetm definition. Make static.
2505
52dabb6c
NB
25062002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
2507
2508 * c-common.h (yyparse, c_common_parse_file): New.
2509 * c-lang.c: Include c-common.h.
2510 (LANG_HOOKS_PARSE_FILE): Redefine.
2511 * c-lex.c: Include c-common.h.
2512 (yyparse): Rename c_common_parse_file. Call yyparse.
2513 * c-parse.in (yyparse): Remove macro.
2514 * c-tree.h (yyparse_1): Remove.
2515 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
2516 (LANG_HOOKS_INITIALIZER): Update.
2517 * langhooks.h (struct lang_hoooks): New hook parse_file.
2518 * toplev.c (compile_file): Use parse_file hook.
2519 * tree.h (yyparse): Remove.
e6542f4e 2520 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 2521
b5ffe606
HPN
25222002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2523
ba82f58b
HPN
2524 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
2525 float_truncate, not fix.
2526 ("*truncdfsf2_real"): Ditto.
2527 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
2528
b5ffe606
HPN
2529 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
2530
c8d1b2b7
AO
25312002-03-16 Alexandre Oliva <aoliva@redhat.com>
2532
cfb773f9
AO
2533 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
2534 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
2535 where appropriate. Make the second reference to
2536 leaf_function_p a function call, as intended. Reindented.
2537
4dffef52
AO
2538 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
2539 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
2540
4f5bd6d7
AO
2541 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
2542 add register to non-constant into sp.
2543
c8d1b2b7
AO
2544 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
2545 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
2546 (mips16_gp_pseudo_rtx): Lose.
2547 (INIT_EXPANDERS): Deleted.
2548 * config/mips/mips.c (mips_init_machine_status): New.
2549 (mips_free_machine_status): New.
2550 (mips_mark_machine_status): New.
2551 (override_options): Set them.
2552 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
2553 (struct machine_function): ... new. Replaced all references.
2554 (mips_add_gc_roots): Don't mark them.
2555 (embedded_pic_fnaddr_reg): New, extracted from...
2556 (embedded_pic_offset): ... here.
2557 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
2558 (movsi): Likewise.
2559
b3124fac
NB
25602002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2561
2562 * cppinit.c: Revert -MD removal.
2563
121449b6
SC
25642002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2565
2566 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
2567 soft registers by default for 68HC12.
2568 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
2569 when compiling with -fomit-frame-pointer.
2570 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
2571 (expand_epilogue): Likewise.
2572 (m68hc11_gen_rotate): Use exg when rotating by 8.
2573
840e2ff1
SC
25742002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2575
2576 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
2577 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
2578 (splits): Remove unused add splits.
2579 ("*addhi3_68hc12"): Tune constraints.
2580 ("addhi_sp"): Try to use X instead of Y in all cases and if the
2581 constant fits in 8-bits and D is dead use abx/aby instructions.
2582 ("*addhi3"): Remove extern declaration of ix_reg.
2583 ("*subsi3"): Optimize and provide new split.
2584 ("subhi3"): Cleanup.
2585 ("*subhi3_sp"): Avoid saving X if we know it is dead.
2586 (arith splits): For 68hc12 save the address register on the stack
2587 and do the arithmetic operation with a pop.
2588
3c9a5efe
SC
25892002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2590
2591 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
2592 allocating QImode in address registers.
2593 ("*movqi_m68hc11"): Likewise.
2594
e41f3392
JH
2595Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
2596
2597 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
2598
576786b0
NB
25992002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2600
2601 * cppinit.c (print_help): Display -MD and -MMD.
2602 Don't display usage string. Update assertion syntax and
2603 typo.
2604 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
2605 (cpp_handle_option): Update.
2606
1ac458d4
CD
26072002-03-15 Chris Demetriou <cgd@broadcom.com>
2608
2609 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
2610 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
2611 and define it so that regardless of target CPU size,
2612 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
2613 of "int" rather than "long."
2614
1fcd592b
RH
26152002-03-15 Richard Henderson <rth@redhat.com>
2616
2617 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
2618 size as a tree.
2619
a0df6910
SC
26202002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2621
2622 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
2623 ("tstqi" split): Avoid using memory for tstqi on address register.
2624 (splits): Remove constraints.
2625 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
2626 ("cmpdf", "cmpsf"): Remove since not used.
2627 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
2628 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
2629
015a2e59
SC
26302002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2631
2632 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
2633 ("neghi2"): Tighten constraints.
2634 ("one_cmplsi2"): Optimize and simplify split.
2635 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
2636
cd28557c
SC
26372002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2638
2639 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
2640 and split of AND operation to clear the upper bits.
2641 ("*logicalsi3_zextqi"): Likewise.
2642 ("*logicallhi3_zexthi_ashift8"): Likewise.
2643 ("*logicalsi3_silshr16"): Likewise.
2644 ("logicalsi3_silshl16"): Likewise.
2645 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
2646
932657df
SC
26472002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2648
2649 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
2650 (m68hc11_indirect_p): New function.
2651 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
2652 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
2653 TARGET_M6812.
2654 (asm_print_register): Likewise.
2655 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
2656 (m68hc11_indirect_p): Declare.
2657 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
2658 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
2659 (TARGET_SWITCHES): New option -mrelax.
2660 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
2661 destination.
2662 ("iorsi3", "xorsi3"): Likewise.
2663 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
2664 ("*andhi3_mem"): New to handle destination in memory with bclr
2665 and a scratch register.
2666 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
2667 ("*andhi3_const"): New when operand2 is constant.
2668 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
2669 ("*andhi3_gen"): Cleanup of the old "andhi3".
2670 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
2671 ("xorqi3"): Update constraints.
2672
fdffea1a
SC
26732002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2674
2675 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
2676 for reg_equiv_memory_loc when the operand is a register that does
2677 not get a hard register (stack location).
2678 (tst_operand): After reload, accept all memory operand.
2679 (symbolic_memory_operand): Fix detection of symbolic references.
2680 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
2681 accept symbols and any constant.
2682
6272bc68
SC
26832002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2684
2685 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
2686 note on the insn that sets the soft frame register.
2687 (must_parenthesize): ix and iy are also reserved names.
2688 (print_operand_address): One more place where parenthesis are required
2689 to avoid confusion with register names.
2690 (m68hc11_gen_movhi): Allow push of stack pointer.
2691 (m68hc11_check_z_replacement): Fix handling of parallel with a
2692 clobber.
2693 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
2694 the replacement register is.
2695 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
2696 and D8_REGS classes.
2697 (MODES_TIEABLE_P): All modes are tieable except QImode.
2698
1d2d9def
SC
26992002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2700
2701 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
2702 (___subdi3): Likewise.
2703 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
2704 (__map_data_section): Optimize 68hc11 case.
2705
a0ccf503
SC
27062002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2707
2708 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
2709 than a shift to avoid adding a register with itself.
2710 (m68hc11_memory_move_cost): Take into account NO_REGS.
2711 (m68hc11_register_move_cost): Update and use memory move cost
2712 for soft registers.
2713 (m68hc11_address_cost): Make cost of valid offset not 0 so that
2714 it gives more opportunities to cse to optimize.
2715 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
2716 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
2717
6e4ae815
MM
27182002-03-15 Mark Mitchell <mark@codesourcery.com>
2719
2720 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
2721 * c-common.def (CLEANUP_STMT): New tree node.
2722 * c-common.h (CLEANUP_DECL): New macro.
2723 (CLEANUP_EXPR): Likewise.
2724 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
2725 * expr.c (expand_expr): Tidy.
2726 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
2727 * tree-inline.c (initialize_inlined_parameters): Clean up
2728 new local variables.
2729
a42519be
JJ
27302002-03-15 Jakub Jelinek <jakub@redhat.com>
2731
2732 PR bootstrap/4128
2733 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
2734 before movrXX only, use reg_overlap_mentioned_p.
2735 Only special case NE if just one insn can be generated.
2736
15409448
JM
27372002-03-15 Jason Merrill <jason@redhat.com>
2738
2739 * varasm.c (assemble_variable): Call resolve_unique_section before
2740 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
2741 of error_mark_node.
2742
3a4edb44
RE
27432002-03-15 Richard Earnshaw <rearnsha@arm.com>
2744
2745 PR target/5170
2746 * arm.md (split pattern for thumb shiftable immediates): Add comment
2747 explaining non-obvious test.
2748
32defa36
RE
27492002-03-15 Richard Earnshaw <rearnsha@arm.com>
2750
2751 PR target/5712
2752 * arm.md (movaddr, movaddr_insn): Delete.
2753
5cc90635
JM
27542002-03-15 Jason Merrill <jason@redhat.com>
2755
2756 * toplev.c (wrapup_global_declarations): Clarify variable handling.
2757 -fkeep-static-consts doesn't apply to comdats.
2758
ecb0eece
RH
27592002-03-14 Richard Henderson <rth@redhat.com>
2760
2761 * c-decl.c: Include c-pragma.h.
2762 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
2763 (finish_function): Tidy.
2764 * c-pragma.c: Include c-common.h.
2765 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
2766 (handle_pragma_weak): Use them.
2767 (init_pragma): Register pending_weaks.
2768 * c-pragma.h (maybe_apply_pragma_weak): Declare.
2769 * print-tree.c (print_node): Print DECL_WEAK.
2770 * varasm.c (mark_weak_decls): Remove.
2771 (remove_from_pending_weak_list): Remove.
2772 (add_weak): Remove.
2773 (asm_emit_uninitialised): Call globalize_decl for weak commons.
2774 (weak_decls): Make a tree_list.
2775 (declare_weak): Cons weak_decls directly.
2776 (globalize_decl): Remove weak_decls elements directly.
2777 (weak_finish): Simplify weak_decls walk. Don't weaken unused
2778 symbols. Don't pretend to handle aliases.
2779 (init_varasm_once): Update weak_decls registry.
2780 * Makefile.in: Update dependencies.
2781
98d2b17e
RH
27822002-03-14 Richard Henderson <rth@redhat.com>
2783
2784 PR target/5312
2785 * config/ia64/ia64.c: Include tm_p.h last.
2786 (gen_nop_type): Remove duplicate definition.
2787 (cycle_end_fill_slots): Set sched_data for second L slot.
2788 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
2789 (nop_cycles_until): Fix typos.
2790
f2f4927e
JJ
27912002-03-15 Jakub Jelinek <jakub@redhat.com>
2792
2793 PR optimization/5891
2794 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
2795
5025a549
DM
27962002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
2797
2798 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
2799 descriptors correctly.
2800
03e9dbc9
MM
28012002-03-14 Michael Meissner <meissner@redhat.com>
2802
2803 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
2804 100, allowing MAX_UNROLLED_INSNS to be overridden.
2805
2806 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
2807 --param.
2808
2809 * unroll.c (params.h): Include.
2810 (MAX_UNROLLED_INSNS): Delete, now in params.h.
2811
2812 * doc/invoke.texi (--param max-unroll-insns): Document.
2813
2814 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
2815
12249385
RE
28162002-03-14 Richard Earnshaw <rearnsha@arm.com>
2817
2818 * arm.md: Fix warnings about constraints in peepholes and splits.
2819
f0cce04a
ZW
28202002-03-14 Zack Weinberg <zack@codesourcery.com>
2821
2822 * cpphash.h (struct lexer_state): Remove line_extension member.
2823 * cpplib.c (dequote_string, do_linemarker): New functions.
2824 (linemarker_dir): New data object.
2825 (DIRECTIVE_TABLE): No longer need to interpret #line in
2826 preprocessed source. Delete obsolete comment about return
2827 values of handlers.
2828 (end_directive, directive_diagnostics, _cpp_handle_directive):
2829 Don't muck with line_extension.
2830 (directive_diagnostics): No need to issue warnings for
2831 linemarkers here.
2832 (_cpp_handle_directive): Issue warnings for linemarkers here,
2833 when appropriate. Dispatch linemarkers to do_linemarker, not
2834 do_line.
2835 (do_line): Code to handle linemarkers split out to do_linemarker.
2836 Convert escape sequences in filename argument, both places.
2837
2838 * cppmacro.c (quote_string): Rename cpp_quote_string and
2839 export. All callers changed.
2840 * cpplib.h (cpp_quote_string): Prototype.
2841 * cppmain.c (print_line): Call cpp_quote_string on to_file
2842 before printing it.
2843
2844 * doc/cpp.texi: Document that escapes are now interpreted in
2845 #line and in linemarkers, and that non-printing characters are
2846 converted to octal escapes when linemarkers are generated.
2847
2848Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
2849
2850 * emit-rtl.c (try_split): Use delete_insns.
2851 * recog.c (split_all_insns): Fix terminating condition.
2852
c882c7ac
RE
28532002-03-14 Richard Earnshaw <rearnsha@arm.com>
2854 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2855
2856 PR target/5828
2857 * arm.c (arm_output_epilogue): Fix floating-point register save
2858 adjustment when using a frame pointer.
2859
3f26edaa
RS
28602002-03-14 Richard Sandiford <rsandifo@redhat.com>
2861
2862 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
2863 * config/mips/mips.c (compute_frame_size): Retrofit them here.
2864 (save_restore_insns, mips_expand_epilogue): And here.
2865 (build_mips16_call_stub): And here.
2866 (mips_function_value): Use the new macros to decide whether a single
2867 or complex float can be returned in floating-point registers. Return
2868 a parallel rtx in the complex case.
2869
1e3881c2
JH
2870Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
2871
2872 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
2873 call after liveness analysis.
2874
2875 * recog.c (split_insn): Use delete_insn_and_edges.
2876
2877 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
2878 instructions to have branch prediction notes.
2879 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
2880
200ef634
GK
28812002-03-14 Geoffrey Keating <geoffk@redhat.com>
2882
2883 * configure.in: Don't pass -Wno-long-long to a ADA compiler
2884 that doesn't support it.
2885 * configure: Regenerate.
2886
0b82d204
JJ
28872002-03-13 Jakub Jelinek <jakub@redhat.com>
2888
2889 PR target/5626
2890 * config/sparc/sparc.md (normal_branch, inverted_branch,
2891 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
2892 inverted_fp_branch): Adjust calls to output_cbranch.
2893 Set length attribute.
2894 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
2895 output_v9branch. Set length attribute.
2896 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
2897 predicates.
2898 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
2899 (output_cbranch): Likewise. Handle far branches.
2900 (output_v9branch): Handle far branches.
2901 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
2902 Adjust prototypes.
2903 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
2904 noov_compare64_op predicates.
2905
7a8de19b
JM
29062002-03-13 Jason Merrill <jason@redhat.com>
2907
2908 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
2909 into the function and constify it.
2910 * gthr-dce.h, gthr-solaris.h: Likewise.
2911
2a55fd42
DE
29122002-03-13 David Edelsohn <edelsohn@gnu.org>
2913
2914 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
2915 * config/rs6000/rs6000.c (rs6000_va_arg): Use
2916 std_expand_builtin_va_arg if not ABI_V4.
2917
19c5b1cf
JM
29182002-03-13 Jason Merrill <jason@redhat.com>
2919
2920 * varasm.c (globalize_decl): New fn.
2921 (assemble_start_function): Use it.
2922 (asm_emit_uninitialized): Use it.
2923 (assemble_alias): Use it.
2924 (assemble_variable): Use it.
2925
2a15f5e1
HPN
29262002-03-13 Hans-Peter Nilsson <hp@axis.com>
2927
2928 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 2929 2002-03-12 internal visibility change.
2a15f5e1
HPN
2930 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
2931 visibility into SYMBOL_REF_FLAG.
2932
c0a3eeac
UW
29332002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
2934
2935 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
2936 VOIDmode operand. Add compile-time optimization for constant results.
2937
a1652cee
JM
29382002-03-12 Jason Merrill <jason@redhat.com>
2939
2940 * c-typeck.c (convert_for_assignment): Don't allow conversions
2941 between pointers and references. Only allow lvalues to convert to
2942 reference.
2943
c52a375d
HP
29442002-03-13 Hartmut Penner <hpenner@de.ibm.com>
2945
f0cce04a
ZW
2946 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
2947 before prologue, to avoid scheduling problems.
c52a375d 2948
e387e99b
JJ
29492002-03-13 Jakub Jelinek <jakub@redhat.com>
2950
2951 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2952 (ELIMINABLE_REGS): Add sfp->sp.
2953 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
2954
29552002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
2956
2957 PR optimization/5892
2958 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
2959
4061c1a3
JJ
29602002-03-13 Jakub Jelinek <jakub@redhat.com>
2961
2962 * loop.c (basic_induction_var): Don't call convert_modes if mode
2963 classes are different.
2964
5b43fed1
RH
29652002-03-12 Richard Henderson <rth@redhat.com>
2966
9f53e965
RH
2967 PR optimization/5901
2968 * function.c (reposition_prologue_and_epilogue_notes): Position
2969 the markers after/before the last/first insn not deleted.
2970
29712002-03-12 Richard Henderson <rth@redhat.com>
2972
2973 PR optimization/5878
5b43fed1
RH
2974 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
2975 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
2976 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2977
2978 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
2979 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
2980 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
2981
2982 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
2983 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
2984 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
2985 also. Don't set it if not flag_pic.
2986 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
2987 to be INVALID_REGNUM when not used.
2988
4e9bb42b
AH
29892002-03-13 Aldy Hernandez <aldyh@redhat.com>
2990
5b43fed1
RH
2991 * expmed.c (store_bit_field): Reset alias set for memory.
2992 (extract_bit_field): Same.
4e9bb42b 2993
2f9834e8
KG
29942002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2995
2996 * c-common.c (c_tree_code_type, c_tree_code_length,
2997 c_tree_code_name, add_c_tree_codes): Delete.
2998 * c-common.h (add_c_tree_codes): Delete.
2999 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3000 Define.
3001 * c-objc-common.c (c_objc_common_init): Don't call
3002 add_c_tree_codes, instead set lang_unsafe_for_reeval.
3003 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3004 objc_tree_code_name, add_objc_tree_codes): Delete.
3005 (objc_init): Don't call add_objc_tree_codes.
3006 * objc/objc-lang.c (tree_code_type, tree_code_length,
3007 tree_code_name): Define.
3008 * toplev.c (lang_independent_init): Don't set
3009 tree_code_length[IDENTIFIER_NODE].
3010 * tree.c (tree_code_type, tree_code_length, tree_code_name):
3011 Delete definitions, moved to language front-ends.
3012 * tree.def (IDENTIFIER_NODE): Hardwire the length.
3013 * tree.h (tree_code_type, tree_code_length, tree_code_name):
3014 Const-ify.
3015 (tree_code_length): Change type to unsigned char.
3016
36ad2436
RH
30172002-03-12 Richard Henderson <rth@redhat.com>
3018
3019 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3020 internal visibility change.
3021
0ae02efa
BW
30222002-03-12 Bob Wilson <bob.wilson@acm.org>
3023
3024 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3025 validize_mem() instead of change_address to avoid clobbering
3026 memory attributes.
3027
35bb2bee
NB
30282002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
3029
3030 * c-lex.h (position_after_whitespace): Remove.
3031
62ae2529
JJ
30322002-03-12 Jakub Jelinek <jakub@redhat.com>
3033
3034 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3035 (lex_string): Use unsigned char pointers.
3036
6a45951f
UW
30372002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3038
3039 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3040 is not a valid memory_operand.
3041
e2fb85da
BW
30422002-03-12 Bob Wilson <bob.wilson@acm.org>
3043
3044 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3045 * config/xtensa/lib1funcs.asm: Fix copyright to include
3046 special case for libgcc files.
3047 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3048 (__divsi3): Likewise.
3049 (__umodsi3): Likewise.
3050 (__modsi3): Likewise.
3051 * config/xtensa/lib2funcs.S: Fix copyright to include
3052 special case for libgcc files.
3053
5b8619f8
TR
30542002-03-12 Tom Rix <trix@redhat.com>
3055
3056 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 3057 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
3058 (ignore_library): Same.
3059
089c8f97
BW
30602002-03-12 Bob Wilson <bob.wilson@acm.org>
3061
3062 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3063
958c70ff
BW
30642002-03-12 Bob Wilson <bob.wilson@acm.org>
3065
3066 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3067 to function_section before writing out the constant pool.
3068
a65c591c
DE
30692002-03-12 David Edelsohn <edelsohn@gnu.org>
3070
3071 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3072 zero_constant.
3073 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3074
30752002-03-12 Alan Modra <amodra@bigpond.net.au>
3076
3077 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3078 (adddi3): Likewise.
3079 (movdf): Likewise.
3080 (movdi): Likewise.
3081 (cmpsi splitter): Likewise.
3082 (modsi3): Fail if <= 0.
3083 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3084 redundant test when HOST_BITS_PER_WIDE_INT != 32.
3085 (reg_or_sub_cint64_operand): Likewise.
3086 (num_insns_constant_wide): Optimize sign extension.
3087 (rs6000_legitimize_address): Likewise.
3088
17720332
AM
30892002-03-12 Andrew MacLeod <amacleod@redhat.com>
3090
3091 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3092 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3093
cd49f073
AM
30942002-03-12 Andrew MacLeod <amacleod@redhat.com>
3095
3096 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3097 address calculation.
3098
6a4e49c1
UW
30992002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3100
3101 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3102 scratch register to DImode / TImode.
3103 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3104 register used does not overlap the target.
3105
54b6670a
KG
31062002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3107
3108 * Makefile.in (debug.o): Depend on debug.h.
3109 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3110 * debug.c (do_nothing_debug_hooks): Likewise.
3111 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3112 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3113 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3114 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3115 * dwarfout.c (dwarf_debug_hooks): Likewise.
3116 * integrate.c (output_inline_function): Likewise.
3117 * objc/objc-act.c (synth_module_prologue): Likewise.
3118 * sdbout.c (sdb_debug_hooks): Likewise.
3119 * toplev.c (debug_hooks): Likewise.
3120 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3121
2465bf76
KG
31222002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3123
3124 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3125 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3126 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3127 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3128 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3129 * defaults.h (POINTER_SIZE): Define.
3130 * doc/tm.texi (POINTER_SIZE): Document default.
3131
53f3e9ca
KG
31322002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3133
3134 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3135
44d3eb5b
RH
31362002-03-11 Richard Henderson <rth@redhat.com>
3137
3138 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3139 if rebuild_label_notes_after_reload.
3140
4a085d2e
HPN
31412002-03-12 Hans-Peter Nilsson <hp@axis.com>
3142
3143 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
3144 emit pic register load if "internal" visibility.
3145 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3146 (cris_expand_builtin_va_arg): Do all computations on trees.
3147
bc204393
RH
31482002-03-11 Richard Henderson <rth@redhat.com>
3149
3150 * rtlanal.c: Include recog.h.
3151 (keep_with_call_p): Fix thinko.
3152 * Makefile.in (rtlanal.o): Update dependencies.
3153
6b8b9d7b
CM
31542002-03-11 Chris Meyer <cmeyer@gatan.com>
3155
3156 * genflags.c (gen_insn): Use IS_VSPACE.
3157 * genoutput.c (output_insn_data): Likewise.
3158 (process_template): Likewise.
3159
6c40858f
RH
31602002-03-11 Richard Henderson <rth@redhat.com>
3161
3162 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3163
40adaa27
NB
31642002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
3165
3166 * Makefile.in: Update.
6c40858f 3167 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 3168 Update documentation.
6c40858f
RH
3169 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3170 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 3171
049b03f4
ZW
31722002-03-11 Zack Weinberg <zack@codesourcery.com>
3173
3174 * Makefile.in: Give texi2pod its input file as a command line
3175 argument, not on stdin.
3176
61eece67
DN
31772002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
3178 Daniel Berlin <dan@dberlin.org>
3179
3180 C++ alias analysis improvement.
f0cce04a 3181 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
3182 classes too.
3183
a65c591c
DE
31842002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3185
ff080aba
UW
3186 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3187
1682dbb1
DR
31882002-03-11 Douglas B Rupp <rupp@gnat.com>
3189
fa2d765a
DR
3190 * toplev.c (vms_fopen): Remove, not needed.
3191
6f1fd286
DR
3192 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3193
b230e057
DR
3194 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3195
cb9a8e97
DR
3196 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3197 for FP, already done later.
3198
1682dbb1
DR
3199 * toplev.c (debug_args): Add entry for VMS_DEBUG.
3200 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3201
3fcaac1d
RS
32022002-03-11 Richard Sandiford <rsandifo@redhat.com>
3203
3204 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3205 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3206 LARGEST_EXPONENT_IS_NORMAL for the given mode.
3207 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3208 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3209 (ediv, emul, eldexp, esqrt): Likewise.
3210 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3211 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3212 (saturate): New function.
3213 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3214 (make_nan): Use a saturation value instead of a NaN if
3215 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
3216 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3217 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
3218 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
3219 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3220 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3221 !ROUND_TOWARDS_ZERO.
3222 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3223 (ROUND_TOWARDS_ZERO): Document.
3224
d25558be
AJ
32252002-03-11 Andreas Jaeger <aj@suse.de>
3226
3227 * cfg.c (dump_flow_info): Remove unused variable.
3228
c71f9ae7
HPN
32292002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
3230
3231 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3232 computations on trees.
3233
561c9153
RH
32342002-03-10 Richard Henderson <rth@redhat.com>
3235
932b4e3e 3236 PR 5693:
561c9153
RH
3237 * reload.c (copy_replacements_1): New.
3238 (copy_replacements): Use it to recurse through the rtx.
3239
26b738be
RH
32402002-03-10 Richard Henderson <rth@redhat.com>
3241
3242 * loop.c (strength_reduce): Compute number of iterations as
3243 unsigned HOST_WIDE_INT.
3244
8d8a083e
RH
32452002-03-10 Richard Henderson <rth@redhat.com>
3246
3247 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3248 to move away from the end of the block.
3249
32810ba3
NB
32502002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
3251
3252 PR preprocessor/5899
3253 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 3254
2b03d201
KG
32552002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3256
f90c544c
KG
3257 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3258
2b03d201
KG
3259 * attribs.c (decl_attributes): Fix signed/unsigned warning.
3260
3ec1b4cb
HPN
32612002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
3262
3263 * config/mmix/mmix.c: Improve comments.
3264 (mmix_target_asm_function_prologue): Drop variable
3265 empty_stack_frame. Don't allocate unused slot above fp.
3266 (mmix_target_asm_function_epilogue): Mirror prologue changes.
3267 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3268 brace in first column.
3269 (enum reg_class): Ditto.
3270 (FIRST_PARM_OFFSET): Now 0.
3271 (USER_LABEL_PREFIX): Remove #if 0:d definition.
3272
27e486c5
KG
32732002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3274
3275 * combine.c (make_extraction): Fix error in last change.
3276
0139adca
KG
32772002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3278
3279 * c4x.c (c4x_fp_reglist): Const-ify.
3280 * cris.c (cris_print_operand): Likewise.
3281 * i386.c (ix86_va_arg): Likewise.
3282 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3283 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3284 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3285 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3286 * mcore.h (regno_reg_class): Likewise.
3287 * mips.c (gen_int_relational): Likewise.
3288 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3289 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 3290 * pdp11.c (move_costs): Likewise.
0139adca
KG
3291 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3292 * s390.c (s390_branch_condition_mnemonic, regclass_map):
3293 Likewise.
3294 * s390.h (regclass_map): Likewise.
3295 * sh.c (shift_amounts): Likewise.
a4334c36 3296 * sh.md (rotlsi3): Likewise.
0139adca 3297
889b90a1
GK
32982002-03-09 Geoffrey Keating <geoffk@redhat.com>
3299
3300 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3301 (ne0+5): Use new clobber to generate proper shift pattern.
3302 Patch by Michael Matz <matz@kde.org>.
3303
2877e0ae
AS
33042002-03-09 Andreas Schwab <schwab@suse.de>
3305
3306 * gcc.c (validate_all_switches): Also handle `%W{...}'.
3307
79b51cd7
GK
33082002-03-09 Geoffrey Keating <geoffk@redhat.com>
3309
3310 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3311
e0f1be5c
JJ
33122002-03-09 Jakub Jelinek <jakub@redhat.com>
3313
3314 PR middle-end/5877
3315 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3316 even for non-representable constants.
3317
0a7ec763
RK
3318Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3319
93fe8e92
RK
3320 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3321 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3322 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3323 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3324 (pop_function_context): Compute MAY_SHARE parameter for
3325 fixup_var_refs.
3326 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3327 (gen_mem_addressof): Call fixup_var_refs with new parm.
3328
0a7ec763
RK
3329 * combine.c (make_extraction): Don't make extension of CONST_INT.
3330
a85cd407
AO
33312002-03-09 Alexandre Oliva <aoliva@redhat.com>
3332
9445b814
AO
3333 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3334 in o32 and o64 ABIs.
3335 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3336 but getting fixed-size structs passed in registers regardless of
3337 padding in o32 and o64 ABIs.
3338
a85cd407
AO
3339 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3340 offset before loading address of argument passed by transparent
3341 reference.
3342
c51fbe40
JDA
33432002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3344
3345 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3346
918e70dd
AO
33472002-03-09 Alexandre Oliva <aoliva@redhat.com>
3348
3349 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3350 marker such that registers after it are saved.
3351
3070dd00
KG
33522002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3353
3354 * sparc.c (arith_4096_operand): Fix error in last change.
3355
e25d11b0
AO
33562002-03-08 Alexandre Oliva <aoliva@redhat.com>
3357
3358 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3359 defaults for MEABI.
3360
41daaf0e
AH
33612002-03-08 Aldy Hernandez <aldyh@redhat.com>
3362
5b43fed1
RH
3363 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3364 vectors.
41daaf0e 3365
fa139b00
AH
33662002-03-08 Aldy Hernandez <aldyh@redhat.com>
3367
5b43fed1 3368 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 3369
c51d95ec
JH
3370Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
3371
3372 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3373 removed; fix return value.
3374 * combine.c (combine_instructions): Dirtify blocks where we failed to
3375 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3376 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3377
3b25fbfe
KG
33782002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3379
3380 * gcse.c (insert_insn_end_bb): Fix typo in last change.
3381
189ae0f4
JH
3382Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
3383
3384 * recog.c (peephole2_optimize): Re-distribute EH edges.
3385
24965e7a
NB
33862002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
3387
3388 * expr.c (expand_expr): Use unsave lang hook.
3389 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3390 (LANG_HOOKS_INITIALIZER): Update.
3391 * langhooks.h (struct lang_hooks): New hook unsave.
3392 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3393 (unsave_expr_1): Remove unused lang_unsave_expr_now.
3394 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
3395 (unsave_expr_now): Remove.
3396 * tree.h (unsave_expr_now, lang_unsave,
3397 lang_unsave_expr_now): Remove.
3398 (lhd_unsave): New.
3399
1e4e95d6
AJ
34002002-03-08 Andreas Jaeger <aj@suse.de>
3401
3402 * flow.c (propagate_block_delete_insn): Remove unused variable.
3403
054ef905
KH
34042002-03-08 Kazu Hirata <kazu@hxi.com>
3405
3406 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3407 insn length for memory load/store.
3408
5304400d 34092002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 3410
5304400d
CR
3411 * doc/install.texi (--with-libiconv-prefix): Document.
3412
81034129
MB
34132002-03-08 Michael Y. Brukman <myb2@cornell.edu>
3414
3415 * doc/sourcebuild.texi: Fix typo.
3416
71db7d03
JJ
34172002-03-08 Jakub Jelinek <jakub@redhat.com>
3418
3419 PR c/3711
3420 * builtins.c (std_expand_builtin_va_arg): Do all computations on
3421 trees.
3422
127c1ba5
RK
3423Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3424
3425 * rtl.c (copy_most_rtx): Move from here ...
3426 * emit-rtl.c (copy_most_rtx): ... to here.
3427
8a13c092
AO
34282002-03-08 Alexandre Oliva <aoliva@redhat.com>
3429
5faae4f7
AO
3430 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3431 SUBTARGET_CPP_SIZE_SPEC.
3432 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3433
8a13c092
AO
3434 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3435
4ec59de2
MH
34362002-03-07 Matt Hiller <hiller@redhat.com>
3437
3438 * gensupport.c (first_dir_md_include): Renamed from include;
3439 change all references.
3440 (last_dir_md_include): Renamed from last_include; change all
3441 references.
3442 (init_md_reader): Unconditionally initialize base_dir whether or
3443 not filename is a relative path.
3444
12f61e77
AO
34452002-03-07 Alexandre Oliva <aoliva@redhat.com>
3446
95356058
AO
3447 * config/fp-bit.c (_unord_f2): Compile it in even if
3448 US_SOFTWARE_GOFAST is enabled.
3449
12f61e77
AO
3450 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3451 NULL_RTX. Set all HFmode operations as NULL_RTX.
3452 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3453 NULL_RTX, try reversing the comparison and the operands.
3454
6d7a1c4c
UW
34552002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3456
3457 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3458 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3459 and MATCH_OP_DUP.
3460
66d54344
JH
3461Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
3462
3463 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3464
068473ec
JH
3465Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3466
3467 * basic-block.h (fixup_abnormal_edges): Declare.
3468 * reload1.c (fixup_abnormal_edges): New function.
3469 * reg-stack.c (convert_regs): Use it.
3470
3471 * gcse.c (insert_insn_end_bb): Handle trapping insns.
3472
3473 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
3474
71925bc0
RS
34752002-03-07 Richard Sandiford <rsandifo@redhat.com>
3476
3477 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
3478 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
3479 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
3480 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
3481 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
3482 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
3483 unless x and y could be infinite.
3484 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
3485 Check that the common type of both arguments is a real, even for
3486 targets without unordered comparisons. Allow an integer argument
3487 to be compared against a real.
3488 (expand_tree_builtin): Use expand_unordered_cmp.
3489 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
3490 * cse.c (fold_rtx): Likewise. Fix indentation.
3491 * fold-const.c (fold_real_zero_addition_p): New.
3492 (fold): Use it, and the new HONOR_... macros.
3493 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
3494 * jump.c (reversed_comparison_code_parts): After searching for
3495 the true comparison mode, use HONOR_NANS to decide whether it
3496 can be safely reversed.
3497 (reverse_condition_maybe_unordered): Remove IEEE check.
3498 * simplify-rtx.c (simplify_binary_operation): Use the new macros
3499 to decide which simplifications are valid. Allow the following
3500 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
3501 and (a - -b) to (a + b).
3502 (simplify_relational_operation): Use HONOR_NANS.
3503 * doc/tm.texi: Document the MODE_HAS_... macros.
3504
145d3bf2
RE
35052002-03-07 Richard Earnshaw <rearnsha@arm.com>
3506
3507 * combine.c (simplify_comparison): If simplifying a logical shift
3508 right and compare with constant, force the comparison to unsigned.
3509
76a773f3
AH
35102002-03-07 Aldy Hernandez <aldyh@redhat.com>
3511
5b43fed1 3512 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 3513
5b43fed1
RH
3514 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
3515 -mabi=no-altivec
3516 (alt_reg_names): Remove % for vrsave.
76a773f3 3517
ab55f58c
RH
35182002-03-06 Richard Henderson <rth@redhat.com>
3519
5ddec02e 3520 PR optimization/5844
ab55f58c
RH
3521 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
3522 if used indicates we've already emitted one copy of an operand.
3523 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
3524 (gen_split): Supply a non-null used.
3525
e16e3291
UW
35262002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3527
5b43fed1 3528 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 3529
1e4e95d6 3530 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
3531 but simply fail if the expression is too complex to simplify.
3532 (simplify_gen_binary): Handle simplify_plus_minus failures.
3533
2ca6672b
JH
3534Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
3535
3536 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
3537 consistently call delete_trivially_dead_insns after CSE and GCSE;
3538 fix DFI_life dumping; do jump threading after liveness; do crossjumping
3539 after liveness2; update comment in last crossjumping.
3540 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
3541
31d0dd4f
JL
3542Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
3543
d094b0b3
JL
3544 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
3545 after completing fast dead code elimination.
3546
31d0dd4f
JL
3547 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
3548 COMPARE operator.
1e4e95d6 3549
f2b958b1
PE
35502002-03-06 Phil Edwards <pme@gcc.gnu.org>
3551
3552 * version.c: Fix misplaced leading blanks on first line.
3553
a2877a09
JH
3554Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
3555
3556 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
3557
fe477d8b
JH
3558Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
3559
3560 * cfgcleanup.c (mentions_nonequal_regs): New function.
3561 (thread_jump): Use it.
3562 * toplev.c (rest_of_compilation): Run jump threading after
3563 liveness.
3564
2041cde4
JJ
35652002-03-06 Jakub Jelinek <jakub@redhat.com>
3566
3567 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
3568 patch.
3569
82d68d46
JH
3570Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
3571
3572 * predict.c (estimate_bb_frequencies): Do not reload the
3573 frequencies from notes.
3574
3dec4024
JH
3575Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
3576
3577 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
3578 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
3579
3580 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
3581 delete_noop_moves): Return indeger.
3582 * flow.c (ndead): New variable.
3583 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
3584 BB argument; update callers.
3585 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
3586 (life_analysis): Do not call purge_all_dead_edges.
3587 (update_life_info): Return number of deleted insns; print statistics.
3588 (update_life_info_in_dirty_blocks): likewise.
3589 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
3590 return number of insns deleted.
3591
3592 * cse.c: Include timevar.h
3593 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
3594 iterate until stabilizes; print statistics; return number of killed
3595 insns.
3596 * Makefile.in: (cse.o): Add timevar.h dependency
3597 * rtl.h (delete_trivially_dead_insns): New.
3598 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
3599 * toplev.c (rest_of_compilation): Update callers.
3600
3601 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
3602 (try_optimize_cfg): Do not update liveness.
3603 (cleanup-cfg): Loop until try_optimize_cfg and dead code
3604 removal stabilizes; use delete_trivially_dead_insns.
3605
3606 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
3607
c7544dd8
ZW
36082002-03-05 Zack Weinberg <zack@codesourcery.com>
3609
3610 * cppmain.c (setup_callbacks): Disable #pragma and #ident
3611 callbacks when processing assembly language.
3612
50b424a9
JDA
36132002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3614
3615 * pa.h (ASM_FILE_END): Define.
3616 * som.h (ASM_FILE_END): Delete.
3617
3618 * pa.c (function_arg): Don't pass floats in general registers in
3619 indirect calls if TARGET_ELF32.
3620
6185f217
RH
36212002-03-05 Richard Henderson <rth@redhat.com>
3622
3623 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
3624
3020a4b2
DS
36252002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3626
3627 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
3628
65649daa
JJ
36292002-03-05 Jakub Jelinek <jakub@redhat.com>
3630
3631 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
3632 -r command line. Don't hide any symbols if not building
3633 shared libgcc.
3634
5a1a3e5e
JH
3635Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
3636
3637 * cfg.c (dump_flow_info): Warn about profile mismatches.
3638 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
3639 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
3640
170c56da
JJ
36412002-03-05 Jakub Jelinek <jakub@redhat.com>
3642
3643 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
3644 wide volatile memory by parts.
3645
6d051694
JJ
36462002-03-05 Jakub Jelinek <jakub@redhat.com>
3647
3648 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
3649 is NULL.
3650
28bcfd4d
RH
36512002-03-05 Richard Henderson <rth@redhat.com>
3652
5b43fed1 3653 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 3654
75227a33
GK
36552002-03-04 Geoffrey Keating <geoffk@redhat.com>
3656
3657 * toplev.c (documented_lang_options): Document more
3658 language-specific options.
3659 * doc/invoke.texi (Warning Options): Correct documentation for
3660 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
3661 * c-decl.c (c_decode_option): Use a table to handle warning options.
3662
4f1aac42
HPN
36632002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
3664
3665 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
3666 parameter to mmix_encode_section_info.
3667 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
3668 relocatably. Always produce ELF, not mmo if linking relocatably.
3669 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
3670 first is non-zero, don't add symbol prefix.
3671 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
3672 prototype accordingly.
3673
12345543
KW
36742002-03-04 Krister Walfridsson <cato@df.lth.se>
3675
3676 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
3677
8e97db8f
JM
36782002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
3679
3680 * configure.in: Increase required makeinfo version to 4.1.
3681 * configure: Regenerate.
3682
06487868
GK
36832002-03-04 Geoffrey Keating <geoffk@redhat.com>
3684
3685 * .cvsignore: Remove *.info* and genrtl*; these files are generated
3686 elsewhere now.
3687
cff42170
JM
36882002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
3689
3690 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
3691 * doc/invoke.texi: Fix @math uses.
3692
974a7f56
JH
3693Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3694
3695 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
3696 removal
3697
3b7d0e98
AH
36982002-03-03 Aldy Hernandez <aldyh@redhat.com>
3699
5b43fed1
RH
3700 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
3701 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 3702
5b43fed1 3703 * config/rs6000/t-ppcendian: New.
3b7d0e98 3704
65f2f288
HB
37052002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3706
3707 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
3708 nonimmediate_src_operand and nonimmediate_lsrc_operand to
3709 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
3710
8ce0a8a5
RH
37112002-03-03 Richard Henderson <rth@redhat.com>
3712
3713 * toplev.c (rest_of_decl_compilation): Revert last two changes.
3714
ba31d94e
ZW
37152002-03-03 Zack Weinberg <zack@codesourcery.com>
3716
3717 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
3718 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
3719 tree.c, config/m68k/m68k.c:
3720 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
3721 REAL_ARITHMETIC blocks unconditional. Delete some further
3722 #ifdef blocks predicated on REAL_ARITHMETIC.
3723 * flags.h, toplev.c: Delete remaining references to
3724 flag_pretend_float.
3725
3726 * doc/invoke.texi: Remove documentation of -fpretend-float.
3727 * doc/tm.texi: Describe the various REAL_* macros as provided by
3728 real.h, not by the target configuration files.
3729
3730 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
3731 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
3732 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3733 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
3734 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
3735 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
3736 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
3737 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
3738 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3739 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
3740 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
3741 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3742 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
3743 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
3744 config/xtensa/xtensa.h:
3745 Do not define, undefine, or mention in comments any of
3746 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
3747 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
3748 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
3749 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
3750 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
3751 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
3752 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
3753 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
3754 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
3755
9a571cfd
KG
37562002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3757
e81dd381
KG
3758 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
3759 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
3760 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
3761 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
3762 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
3763 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
3764 Delete.
3765 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 3766 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 3767
9a571cfd
KG
3768 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
3769 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
3770 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
3771
ca7558fc
KG
37722002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3773
3774 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
3775 lieu of explicit sizeof/sizeof.
3776 * i386.c (override_options, ix86_init_mmx_sse_builtins,
3777 ix86_expand_builtin): Likewise.
3778 * mips.c (mips_add_gc_roots): Likewise.
3779 * mmix.c (mmix_output_condition): Likewise.
3780 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
3781 altivec_init_builtins): Likewise.
3782 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
3783 * cppexp.c (Nsuff, parse_number): Likewise.
3784 * cppinit.c (builtin_array_end): Likewise.
3785 * gcc.c (n_default_compilers, process_command): Likewise.
3786 * genpreds.c (output_predicate_decls): Likewise.
3787 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
3788 * lcm.c (N_ENTITIES): Likewise.
3789 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 3790
41c78c88
RH
37912002-03-03 Richard Henderson <rth@redhat.com>
3792
3793 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
3794 for types or labels.
3795
9e9b71e6
RH
37962002-03-03 Richard Henderson <rth@redhat.com>
3797
3798 * c-decl.c (start_decl): Initialized variables are not common.
3799
c26a6db8
PB
38002002-03-02 Per Bothner <per@bothner.com>
3801
3802 * gcc.c (option_map): Suport new --bootclasspath option.
3803 --CLASSPATH is now just an alias for --classpath.
3804
9e8aab55
RH
38052002-03-02 Richard Henderson <rth@redhat.com>
3806
3807 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
3808 load if "internal" visibility.
3809 * doc/extend.texi: Document visibility meanings.
3810
b3bbd220
RH
38112002-03-02 Richard Henderson <rth@redhat.com>
3812
3813 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
3814 to functions as well.
3815
b14707c3
RH
38162002-03-02 Richard Henderson <rth@redhat.com>
3817
3818 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
3819 (handle_visibility_attribute): Don't call assemble_visibility.
3820 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
3821 without asmspec. Invoke assemble_alias when needed.
3822 * varasm.c (maybe_assemble_visibility): New.
3823 (assemble_start_function, assemble_variable, assemble_alias): Use it.
3824
b2003250
RH
38252002-03-02 Richard Henderson <rth@redhat.com>
3826
3827 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
3828 invoke ENCODE_SECTION_INFO with first call flag.
3829
3830 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
3831 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 3832 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
3833 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
3834 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
3835 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
3836 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
3837 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
3838 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
3839 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
3840 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
3841 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
3842 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
3843 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
3844 config/mcore/mcore-protos.h, config/mcore/mcore.c,
3845 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
3846 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 3847 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
3848 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
3849 config/sh/sh.h, config/sparc/sparc.h,
3850 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
3851 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
3852 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
3853 FIRST argument. As needed, examine it and do nothing.
3854
ba31d94e 3855 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
3856 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3857 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
3858
3859 * config/arm/t-pe (pe.o): Add dependencies.
3860
5c60f03d
KG
38612002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3862
3863 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
3864 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
3865 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
3866 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
3867 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
3868 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
3869 * defaults.h (BITS_PER_UNIT): Define.
3870 * doc/tm.texi (BITS_PER_UNIT): Document default value.
3871
86855e8c
KH
38722002-03-02 Kazu Hirata <kazu@hxi.com>
3873
3874 * config/h8300/h8300-protos.h: Add a prototype for
3875 compute_a_shift_length.
3876 * config/h8300/h8300.c (h8300_asm_insn_count): New.
3877 (compute_a_shift_length): Likewise.
3878 (h8300_adjust_insn_length): Do not adjust insn length of shift
3879 insns.
3880 * config/h8300/h8300.md (anonymous shift patterns): Use
3881 compute_a_shift_length.
3882
f6041ed8
RK
3883Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3884
35aa3c1c
RK
3885 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
3886 trunc_int_for_mode.
3887
f6041ed8
RK
3888 * emit-rtl.c (offset_address): Call update_temp_slot_address.
3889
27b41650
KG
38902002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3891
3892 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
3893 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
3894 * flags.h (flag_zero_initialized_in_bss): Declare.
3895 * toplev.c (flag_zero_initialized_in_bss): New flag.
3896 (lang_independent_options): Add flag_zero_initialized_in_bss.
3897 * tree.c (initializer_zerop): New function.
3898 * tree.h (initializer_zerop): Declare.
3899 * varasm.c (assemble_variable): If we can emit bss, put zero
3900 initializers in the bss section.
3901
ca734b39
AM
39022002-03-02 Alan Modra <amodra@bigpond.net.au>
3903
3904 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
3905 like more than one symbol per .weak directive.
3906
49b72306
RH
39072002-03-01 Richard Henderson <rth@redhat.com>
3908
3909 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
3910 adjust argument_pointer by pretend_args_size.
3911 (ia64_va_start): Adjust va_start address by -pretend_args_size.
3912
fbf0fe41
KH
39132002-03-01 Kazu Hirata <kazu@hxi.com>
3914
3915 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
3916
0010687d
JH
3917Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
3918
3919 * toplev.c (rest_of_compilation): Delete dead jumptables before
3920 loop.
3921 * flow.c (delete_dead_jumptables): Make global.
3922 * rtl.h (delete_dead_jumptables): Declare.
3923
9429c84c
DE
39242002-03-01 David Edelsohn <edelsohn@gnu.org>
3925
3926 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
3927 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 3928 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 3929
f0b6f9a6
KH
39302002-03-01 Kazu Hirata <kazu@hxi.com>
3931
3932 * config/h8300/h8300-protos.h: Fix formatting.
3933 * config/h8300/h8300.c: Likewise.
3934 * config/h8300/h8300.h: Likewise.
3935
bc8db8a1
KH
39362002-03-01 Kazu Hirata <kazu@hxi.com>
3937
3938 * config/h8300/h8300.c (print_operand): Support 16-bit
3939 constant addresses.
3940 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
3941
32b069d3
RH
39422002-02-28 Richard Henderson <rth@redhat.com>
3943
3944 * expmed.c (store_bit_field): Prevent generation of CONCATs;
3945 pun complex values as integers; use gen_lowpart instead of
3946 gen_rtx_SUBREG.
3947 (extract_bit_field): Likewise.
3948
79c4e63f
AM
39492002-03-01 Alan Modra <amodra@bigpond.net.au>
3950 David Edelsohn <edelsohn@gnu.org>
3951
3952 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
3953 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
3954 (SUPPORTS_WEAK): Likewise.
3955 * output.h (add_weak): Add tree param.
3956 * varasm.c (add_weak): Likewise. Save decl.
3957 (struct weak_syms): Add decl field.
3958 (mark_weak_decls): New function.
3959 (init_varasm_once): ggc_add_root mark_weak_decls.
3960 (assemble_start_function): Use ASM_WEAKEN_DECL.
3961 (assemble_variable): Likewise.
3962 (assemble_alias): Likewise.
3963 (declare_weak): Pass decl to add_weak.
3964 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
3965 (remove_from_pending_weak_list): Declare and define for
3966 ASM_WEAKEN_DECL.
3967 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
3968 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
3969 * defaults.h (SUPPORTS_WEAK): Likewise.
3970 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3971 .weak for code sym. Do emit .size for descriptor sym.
3972 (ASM_DECLARE_FUNCTION_SIZE): Define.
3973 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
3974 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
3975 .lglobl unless TARGET_XCOFF. Formatting fixes.
3976 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3977 .weak for code sym.
3978 (HANDLE_PRAGMA_WEAK): Remove.
3979 (ASM_WEAKEN_LABEL): Remove.
3980 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
3981
6f30f1f1
JM
39822002-03-01 Jason Merrill <jason@redhat.com>
3983
3984 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
3985 (TARGET_EXPR_CLEANUP): New macro.
3986
7879b81e
SE
39872002-02-28 Steve Ellcey <sje@cup.hp.com>
3988
3989 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
3990 to take ptr_extend into account as third type of extension.
3991 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
3992 fields used by SUBREG_PROMOTED_UNSIGNED_P.
3993 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
3994 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
3995 * calls.c (precompute_arguments): Use new macro.
3996 (expand_call): Ditto.
3997 * combine.c (nonzero_bits): Ditto.
3998 (record_promoted_value): Ditto.
3999 * expr.c (store_expr): Ditto.
4000 (expand_expr): Ditto.
4001 * function.c (assign_parms): Ditto.
4002
42d579d8
AO
40032002-02-28 Alexandre Oliva <aoliva@redhat.com>
4004
4005 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4006 override -shared and -shared-libgcc.
4007
e0054185
DB
40082002-02-28 David O'Brien <obrien@FreeBSD.org>
4009
4010 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4011 of "ultrasparc".
4012 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
4013 to be broken.
4014
abda4f1c
RH
40152002-02-28 Richard Henderson <rth@redhat.com>
4016
4017 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4018 4 cycle latency from MM producers.
4019 (ia64_internal_sched_reorder): Likewise with pipeline flush.
4020
c0f08649
JJ
40212002-02-28 Jakub Jelinek <jakub@redhat.com>
4022
4023 * mklibgcc.in: Don't use GNU make extension.
4024
f79f2651
NB
40252002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4026
4027 * c-parse.in (STATIC): New terminal.
4028 (scspec): New non-terminal. Update productions accordingly.
4029 (program): Remove bogus ifc / end ifc.
4030 (array_declarator): Simplify production using STATIC.
4031
001e3fee
JM
40322002-02-28 Jim Meyering <meyering@lucent.com>
4033
4034 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4035 \a still means TARGET_BELL.
4036
89076bb3
RH
40372002-02-28 Richard Henderson <rth@redhat.com>
4038
4039 * haifa-sched.c (sched_emit_insn): New.
4040 (schedule_block): Use last_scheduled_insn to track last insn.
4041 * sched-int.h (sched_emit_insn): Prototype.
4042 * config/ia64/ia64.c (last_issued): Remove.
4043 (ia64_variable_issue): Don't set it.
4044 (nop_cycles_until): Use sched_emit_insn.
4045
e3aaacf4
AM
40462002-02-28 Andrew MacLeod <amacleod@redhat.com>
4047
4048 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4049 extended constants.
4050
7f473594
KH
40512002-02-28 Kazu Hirata <kazu@hxi.com>
4052
4053 * config/h8300/h8300.c: Fix formatting.
4054 * config/h8300/h8300.h: Likewise.
4055
b96c434c
MM
40562002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
4057
4058 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4059 which may overwrite the high byte of the frame pointer.
4060
9b420a6a
BT
40612002-02-28 Bo Thorsen <bo@suse.de>
4062
4063 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4064 (STARTFILE_SPEC): Add 64 bit files.
4065 (ENDFILE_SPEC): Likewise.
4066
6f30f1f1 40672002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
4068
4069 * c-decl.c (finish_function): Only warn about missing return
4070 statement with -Wreturn-type.
4071
70da1d03
JH
4072Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
4073
4074 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4075
4076 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4077 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4078
38c1593d
JH
4079Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
4080
4081 * basic-block.h (BB_REACHABLE): Renumber.
4082 (BB_DIRTY, BB_NEW): New flags.
4083 (clear_bb_flags): Declare.
4084 (update_life_info_in_dirty_blocks): Declare.
4085 * cfg.c (clear_bb_flags): New function.
4086 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4087 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4088 reorder_insns, emit_insn_after): Mark block as dirty.
4089 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4090 (update_life_info_in_dirty_blocks): New function.
4091 * recog.c (apply_change_group): Dirtify block.
4092
4093 * cse.c (cse_insn): Reorder emitting of jump insn to keep
4094 cfg consistent.
4095 * gcse.c (delete_null_pointer_checks): Likewise.
4096
4097 * toplev.c (dump_file_index): Move cse2 after bp,
4098 add DFI_null
4099 (dump_file_info): Similary.
4100 (rest_of_compilation): Avoid most of CFG rebuilds;
4101 do first if converision after null pointer checks, do cse2
4102 after branch prediction; avoid full liveness rebuild after
4103 initializing subregs.
4104 * invoke.texi (-d options): Document -du, renumber.
4105
4106 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4107 (notice_new_block): Do not set BB_UPDATE_LIFE.
4108 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4109 merge_blocks_move_successor_nojumps, merge_blocks,
4110 try_crossjump_to_edge): Likewise.
4111 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4112 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4113 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4114 (merge_of_block): Do not use life_data_ok.
4115 (find_if_case_1): Do not use SET_UPDATE_LIFE.
4116 (if_convert): Use BB_DIRTY mechanizm to update life.
4117 * lcm.c (optimize_mode_switching): Update
4118 update_life_info_in_dirty_blocks
4119
63e1b1c4
NB
41202002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4121
4122 * Makefile.in (integrate.o): Update.
4123 * c-decl.c (copy_lang_decl): Rename.
4124 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4125 * integrate.c: Include langhooks.h.
4126 (copy_decl_for_inlining): Update to use langhook.
4127 * langhooks-def.h (lhd_do_nothing_t,
4128 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4129 (LANG_HOOKS_INITIALIZER): Update.
4130 * langhooks.c (lhd_do_nothing_t): New.
4131 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4132 * tree.h (copy_lang_decl): Remove.
4133objc:
4134 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4135
f472fa29
AM
41362002-02-27 Andrew MacLeod <amacleod@redhat.com>
4137
ba31d94e 4138 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
4139 POST_DEC, and POST_MODIFY.
4140
273cf2e4
ZW
41412002-02-27 Zack Weinberg <zack@codesourcery.com>
4142
4143 * c-typeck.c (digest_init): Remove unused parameter; all
4144 callers changed.
4145
4e07d762
GK
41462002-02-27 Geoffrey Keating <geoffk@redhat.com>
4147
4148 * expmed.c (expand_shift): Correctly test for low part of a
4149 subreg.
4150
6bc627b3
UW
41512002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4152
4153 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4154 insn UIDs with insn addresses.
4155
f458d1d5
ZW
41562002-02-27 Zack Weinberg <zack@codesourcery.com>
4157
4158 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4159 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4160 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4161 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4162 gcc.c, toplev.c: Delete code implementing -traditional mode.
4163
4164 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4165 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4166 Document removal of -traditional mode for compilation, and
4167 remove documentation only relevant to that mode.
4168
4169 * config/nextstep.h, config/ptx4.h, config/svr4.h,
4170 config/convex/convex.h, config/d30v/d30v.h,
4171 config/i386/dgux.h, config/i386/osf1elf.h,
4172 config/i386/osfelf.h, config/i386/osfrose.h,
4173 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4174 config/m68k/hp310.h, config/m88k/dgux.h,
4175 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4176 config/m88k/m88k.h, config/m88k/openbsd.h,
4177 config/mips/abi64.h, config/mips/osfrose.h,
4178 config/mips/svr4-5.h, config/mips/svr4-t.h,
4179 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4180 config/stormy16/stormy16.h: Remove all references to
4181 -traditional from target specs. Delete all mention of the
4182 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
4183 delete a couple of commented-out definitions of
4184 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4185 to -traditional.
4186
4187 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4188 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4189
e0b3a8ff
ZW
41902002-02-27 Zack Weinberg <zack@codesourcery.com>
4191
4192 * mklibgcc.in: Don't use \n in a line subject to
4193 interpretation by echo.
4194
5c6a85b7
GS
41952002-02-27 Graham Stott <grahams@redhat.com>
4196
72b05af1
GS
4197 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4198 Constify NAME.
4199
7d104885
GS
4200 * loop.c (prescan_loop): Handle PARALLEL.
4201
8ed805d2
GS
4202 * unroll.c (loop_iterations): Return 0 if the add_val for
4203 a BIV is REG.
4204
fd478a0a
GS
4205 * final.c (output_operand_lossage): Constify PFX_STR.
4206
5c6a85b7
GS
4207 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4208
cd98ad03
JH
4209Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
4210
4211 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4212 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4213
639ae55b
JH
4214Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
4215
4216 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4217
e808ec9c
NB
42182002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
4219
4220 * cpplex.c (_cpp_lex_token): Handle directives in macro
4221 arguments.
4222 * cpplib.c (_cpp_handle_directive): Save and restore state
4223 if parsing macro args when entering a directive.
4224 * cppmacro.c (collect_args): No need to handle directives
4225 in macro arguments.
4226 (enter_macro_context, replace_args): Use the original macro
4227 definition in case it was redefined whilst collecting arguments.
4228doc:
4229 * cpp.texi: Update.
4230
f585a356
DE
42312002-02-26 David Edelsohn <edelsohn@gnu.org>
4232
4233 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4234 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4235 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4236 method on AIX.
4237 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4238 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4239 (load_toc_v4_PIC_2): Same.
4240
42412002-02-26 Alan Modra <amodra@bigpond.net.au>
4242
4243 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4244
d699058e
RH
42452002-02-26 Richard Henderson <rth@redhat.com>
4246
4247 * config/alpha/alpha.md (ashldi_se): Re-enable.
4248
eadccfbb
RH
42492002-02-26 Richard Henderson <rth@redhat.com>
4250
4251 * config/alpha/alpha.c (alpha_encode_section_info): Examine
4252 MODULE_LOCAL_P; improve commentary.
4253
7080ada1
ZW
42542002-02-26 Zack Weinberg <zack@codesourcery.com>
4255
4256 * doc/cpp.texi: Clarify documentation of relationship between
4257 #line and #include.
4258
b42cff6b
KH
42592002-02-26 Kazu Hirata <kazu@hxi.com>
4260
4261 * config/h8300/h8300-protos.h: Update the prototype for
4262 compute_logical_op_length. Add the prototype for
4263 compute_logical_op_cc.
4264 * config/h8300/h8300.c (compute_logical_op_length): Figure out
4265 code from operands.
4266 (compute_logical_op_cc): New.
4267 * config/h8300/h8300.md: Combine all the logical op patterns
4268 in HImode and SImode. Use compute_logical_op_cc.
4269
831c4e87
KC
42702002-02-26 Kelley Cook <kelleycook@comcast.net>
4271
4272 * config/i386/i386.c (print_operand): Don't append ATT-style
4273 length suffixs to x87 opcodes when in Intel mode.
4274
ff88fe10
RS
42752002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
4276
4277 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4278 (init_emit_once): Update calls.
4279 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4280 (init_syntax_once): Prototype.
4281
d4108589
JDA
42822002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
4283
4284 * pa-linux.h (LIB_SPEC): Update definition.
4285 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4286
e013f3c7
RH
42872002-02-26 Richard Henderson <rth@redhat.com>
4288
4289 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4290 if we emitted a stop bit.
4291
9e944a16
JJ
42922002-02-26 Jakub Jelinek <jakub@redhat.com>
4293
4294 * configure.in (libgcc_visibility): Substitute.
4295 * configure: Rebuilt.
4296 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4297 defined symbols .hidden.
4298
47bd70b5
JJ
42992002-02-26 Jakub Jelinek <jakub@redhat.com>
4300
4301 * attribs.c (c_common_attribute_table): Add visibility.
4302 (handle_visibility_attribute): New function.
4303 * varasm.c (assemble_visibility): New function.
4304 * output.h (assemble_visibility): Add prototype.
4305 * tree.h (MODULE_LOCAL_P): Define.
4306 * crtstuff.c (__dso_handle): Use visibility attribute.
4307 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4308 for MODULE_LOCAL_P symbols too.
4309 * config/ia64/ia64.c (ia64_encode_section_info): Handle
4310 MODULE_LOCAL_P symbols the same way as local symbols.
4311 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4312 into .sdata/.sbss by the user.
4313 * doc/extend.texi (Function Attributes): Document visibility
4314 attribute.
4315
6d73371a
JJ
43162002-02-26 Jakub Jelinek <jakub@redhat.com>
4317
4318 PR debug/5770
4319 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4320 STRING_CST initializer spanning the whole variable without
4321 embedded zeros.
4322 If expand_expr returned MEM, don't use it.
4323
06e224f7
AO
43242002-02-26 Alexandre Oliva <aoliva@redhat.com>
4325
4326 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4327 generate a die for the lexical block.
4328
40367e2d
KH
43292002-02-26 Kazu Hirata <kazu@hxi.com>
4330
4331 * config/h8300/h8300-protos.h: Add a prototype for
4332 compute_logical_op_length.
4333 * config/h8300/h8300.c (compute_logical_op_length): New.
4334 * config/h8300/h8300.md (anonymous logical patterns): Use
4335 compute_logical_op_length for length.
4336
0e98f924
AH
43372002-02-26 Aldy Hernandez <aldyh@redhat.com>
4338
831c4e87
KC
4339 * dwarf2out.c (modified_type_die): Do not call type_main_variant
4340 for vectors.
4341 (gen_type_die): Same.
0e98f924 4342
831c4e87 4343 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 4344
a50cfd52
DE
43452002-02-26 Daniel Egger <degger@fhm.edu>
4346
831c4e87
KC
4347 * config/rs6000/rs6000.md: Swap define_insn attributes to
4348 fix incorrect generation of merge high instructions instead
4349 of merge low.
a50cfd52 4350
b7997284
AH
43512002-02-26 Aldy Hernandez <aldyh@redhat.com>
4352
831c4e87
KC
4353 * c-typeck.c (really_start_incremental_init): Use
4354 bitsize_zero_node for vectors.
b7997284 4355
376aec5d
AH
43562002-02-26 Aldy Hernandez <aldyh@redhat.com>
4357
831c4e87
KC
4358 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4359 ("*set_vrsave_internal"): Same.
376aec5d 4360
3b40e71b
RH
43612002-02-25 Richard Henderson <rth@redhat.com>
4362
4363 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4364 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
4365
232b8f52
JJ
43662002-02-25 Jakub Jelinek <jakub@redhat.com>
4367
4368 PR target/5755
4369 * config/i386/i386.c (ix86_return_pops_args): Only pop
4370 fake structure return argument if it was passed on the stack.
4371
67282790
JM
43722002-02-25 Jason Merrill <jason@redhat.com>
4373
4374 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4375 RESULT_DECL.
4376
5c181756
AO
43772002-02-25 Alexandre Oliva <aoliva@redhat.com>
4378
4379 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4380 link with shared_name only.
4381 * doc/invoke.texi (Link Options): Document new behavior.
4382
6786d201
AH
43832002-02-25 Aldy Hernandez <aldyh@redhat.com>
4384
831c4e87 4385 * c-typeck.c (push_init_level): Handle vectors.
6786d201 4386
7d6040e8
AO
43872002-02-25 Alexandre Oliva <aoliva@redhat.com>
4388
4389 * config/sparc/sparc.c (const64_high_operand): Zero-extend
4390 operands of SPARC_SETHI_P.
4391 (input_operand): Likewise.
4392 (sparc_emit_set_const32): Likewise.
4393 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4394 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4395 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
4396 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4397 (movdi_insn_sp64_vis): Likewise.
4398 (movdi split, movdf split): Use SETHI32.
4399 * doc/md.texi: Document SPARC constraints L, M and N.
4400
b188f760
AH
44012002-02-25 Aldy Hernandez <aldyh@redhat.com>
4402
831c4e87
KC
4403 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4404 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 4405
831c4e87
KC
4406 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4407 gen_get_vrsave_internal.
b188f760 4408
8041889f
RK
4409Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4410
4411 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4412
a47ed310
NB
44132002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
4414
4415 * cpplex.c (cpp_interpret_charconst): Get signedness or
4416 otherwise of wide character constants correct.
4417 * cppexp.c (lex): Get signedness of wide charconsts correct.
4418
cb8f73be
RK
4419Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4420
4421 * optabs.c (widen_operand): Only call convert_modes for
4422 promoted SUBREG if signedness matches.
4423 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4424
2450e0b8
NB
44252002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4426
4427 * cpplib.c (glue_header_name): Use local buffer to build up
4428 header name.
4429
70b6aaed
NB
44302002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4431
4432 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4433
6be580c7
KH
44342002-02-23 Kazu Hirata <kazu@hxi.com>
4435
4436 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4437 H8/300[HS] separately.
4438 * config/h8300/h8300.md: Remove the early clobber constraint
4439 from bit field patterns.
4440
35dad9f1
KH
44412002-02-23 Kazu Hirata <kazu@hxi.com>
4442
4443 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4444 register_operand.
4445 (mulhisi3): Likewise.
4446 (umulqisi3): Likewise.
4447 (umulhisi3): Likewise.
4448
ab8e2228
NB
44492002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4450
4451 * cppinit.c (output_deps): Correct test for stdout output.
4452 (init_dependency_output): Cure warning.
4453
ac6f8a15
RK
4454Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4455
4456 * expr.c (store_expr): When converting expression to promoted
4457 equivalent type, allow using SUBREG_REG of TARGET as the target
4458 of the expansion of EXP.
4459 * loop.c (basic_induction_var, case SUBREG): Always look inside.
4460 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4461 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4462 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4463 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4464
f282ffb3
JM
44652002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
4466
4467 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
4468 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
4469 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
4470
44c5edc0
JJ
44712002-02-23 Jakub Jelinek <jakub@redhat.com>
4472
4473 PR optimization/5747
4474 * loop.c (scan_loop): Update reg info if move_movables created new
4475 pseudos.
4476
f98e43c0
DE
44772002-02-23 David Edelsohn <edelsohn@gnu.org>
4478
4479 * gcc.c (init_gcc_spec): Revert last change.
4480
e72247f4
DE
44812002-02-23 David Edelsohn <edelsohn@gnu.org>
4482
4483 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
4484 gpc_reg_operand constraint.
4485
44862002-02-23 Alan Modra <amodra@bigpond.net.au>
4487
4488 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
4489 Simplify comparison of `low'.
4490 (add_operand): Fix formatting.
4491 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 4492 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
4493 (rs6000_stack_info): Remove redundant test setting push_p.
4494 (output_toc): Fix formatting.
4495 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
4496 cc_reg_not_cr0_operand constraint.
4497 (booldi3, boolcdi3 splitters): Same.
4498
a5c30531
AH
44992002-02-23 Aldy Hernandez <aldyh@redhat.com>
4500
831c4e87 4501 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 4502
43710f9f
DE
45032002-02-22 David Edelsohn <edelsohn@gnu.org>
4504
4505 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
4506 gcc invoked with -shared-libgcc.
4507
3256b817
JJ
45082002-02-22 Jakub Jelinek <jakub@redhat.com>
4509
4510 PR c++/5748
4511 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
4512 decl if any of elements was TREE_USED.
4513
9e0625a3
AO
45142002-02-22 Alexandre Oliva <aoliva@redhat.com>
4515
4516 * config/sparc/sol2.h: Don't include sys/mman.h.
4517 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
4518 (arith_4096_operand): Don't throw high bits away.
4519 (const64_operand): Take sign extension of CONST_INTs into account.
4520 (const64_high_operand, sparc_emit_set_const32): Likewise.
4521 (GEN_HIGHINT64): Likewise.
4522 (sparc_emit_set_const64_quick1): Likewise.
4523 (const64_is_2insns): Likewise.
4524 (print_operand): Use trunc_int_for_mode for sign extension.
4525 * config/sparc/sparc.h (SMALL_INT32): Likewise.
4526 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
4527 chars. Assume CONST_INT is already properly sign-extended.
4528 (movdi split): Sign-extend each SImode part.
4529 (andsi3 split): Don't mask high bits off, so that result
4530 remains properly sign-extend.
4531 (iorsi3 split): Likewise.
4532 (xorsi3 split): Likewise.
4533
54fec3d5
RS
45342002-02-22 Richard Sandiford <rsandifo@redhat.com>
4535
4536 * fold-const.c (fold): Fix typo in comments.
4537
667ada9b
DN
45382002-02-21 Diego Novillo <dnovillo@redhat.com>
4539
4540 * Makefile.in (langhooks.o): Update dependencies.
4541
29ac78d5
DN
45422002-02-21 Diego Novillo <dnovillo@redhat.com>
4543
4544 * langhooks.c: Include flags.h.
4545
6aa77e6c
AH
45462002-02-21 Aldy Hernandez <aldyh@redhat.com>
4547
4548 * testsuite/gcc.dg/attr-alwaysinline.c: New.
4549
4550 * c-common.c (c_common_post_options): Set inline trees by
4551 default.
4552
4553 * doc/extend.texi (Function Attributes): Document always_inline
4554 attribute.
4555 Update documentation about inlining when not optimizing.
4556
4557 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
4558
4559 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4560 unless DECL_ALWAYS_INLINE.
4561
4562 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
4563 unless DECL_ALWAYS_INLINE.
4564 (c_disregard_inline_limits): Disregard if always_inline set.
4565
4566 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
4567 Disregard if always_inline set.
4568 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
4569 unless DECL_ALWAYS_INLINE.
4570
4571 * attribs.c (handle_always_inline_attribute): New.
4572 (c_common_attribute_table): Add always_inline.
4573
4574 * config/rs6000/altivec.h: Add prototypes for builtins
4575 requiring the always_inline attribute.
4576
c410d49e
EC
45772002-02-21 Eric Christopher <echristo@redhat.com>
4578
4579 * expmed.c (store_bit_field): Try to simplify the subreg
4580 before generating a new one when when the mode size of
4581 value is less than maxmode.
4582
e3c8ea67
RH
45832002-02-21 Richard Henderson <rth@redhat.com>
4584
4585 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
4586 than gen_rtx_PLUS to form the sum.
4587 * explow.c (force_reg): Rearrange to not allocate new pseudo
4588 when force_operand returns a register.
4589 * expr.c (expand_assignment): Allow offset_rtx expansion to
4590 return a sum. Do not force addresses into registers.
4591 (expand_expr): Likewise.
4592 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
4593 to canonicalize arithmetic that didn't simpify.
4594 (simplify_plus_minus): New argument force; update
4595 all callers. Don't split CONST unless we can do something with it,
4596 and wouldn't lose the constness of the operands.
4597
4598 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
4599 that we generated earlier.
4600
c1a046e5
TT
46012002-02-21 Tom Tromey <tromey@redhat.com>
4602
4603 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4604 (output_line_info): Use constant `1', with a long explanatory
4605 comment.
4606 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
4607
31fbaad4
R
4608Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
4609
4610 * jump.c (redirect_jump): If old label has no UID, don't try to
4611 delete it.
4612
a7f52356
R
4613Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
4614
4615 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
4616 If input is constant, do shifts at compile time.
4617
924fcc4e
JM
46182002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
4619
4620 * doc/extend.texi: Fix some more overfull hboxes.
4621
e5a20888
JJ
46222002-02-21 Jakub Jelinek <jakub@redhat.com>
4623
4624 PR optimization/4994
4625 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
4626 register moves.
4627
46282002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
4629
4630 PR c++/4574
4631 * expr.h (expand_and): Add mode argument.
4632 * expmed.c (expand_and): Add mode argument.
4633 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
4634 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
4635 * except.c (expand_builtin_extract_return_addr): Likewise.
4636 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4637 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4638 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
4639 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
4640 * config/c4x/c4x.md: Use GEN_INT (x) instead of
4641 gen_rtx (CONST_INT, VOIDmode, x).
4642
7133e992
JJ
46432002-02-21 Jakub Jelinek <jakub@redhat.com>
4644
4645 PR c/4697:
4646 * stmt.c (warn_if_unused_value): Move side effects test once more.
4647
e2ec05a6
TG
46482002-02-20 Torbjorn Granlund <tege@swox.com>
4649
4650 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 4651 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 4652
9dd791c8
AO
4653Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
4654
4655 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
4656 SUBREG or ZERO_EXTEND.
4657
7ab56274
R
4658Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
4659
4660 * sh.h (current_function_anonymous_args): Remove.
4661 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
4662 of current_function_varargs and current_function_stdarg is set.
4663 * sh.c (sh_expand_prologue): Check current_function_varargs /
4664 current_function_stdarg / TARGET_SH5 instead of
4665 current_function_anonymous_args.
4666
4667 * sh64.h (TARGET_VERSION): Define.
4668
b1765bde
DE
46692002-02-20 David Edelsohn <edelsohn@gnu.org>
4670
4671 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
4672 VRSAVE_REGNO on TARGET_ALTIVEC.
4673
46742002-02-20 Alan Modra <amodra@bigpond.net.au>
4675
4676 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
4677 bits of SImode const_int.
4678 (includes_rshift_p): Likewise.
4679 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 4680 mode.
b1765bde
DE
4681 (rs6000_output_function_epilogue): Pad traceback table to word.
4682 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
4683 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
4684 mask64_operand with correct mode.
b1765bde
DE
4685 (FUNCTION_ARG_REGNO_P): Correct parentheses.
4686
149d6f9e
JJ
46872002-02-20 Jakub Jelinek <jakub@redhat.com>
4688
4689 PR debug/4461
4690 * varasm.c (get_pool_constant_mark): New.
4691 * rtl.h (get_pool_constant_mark): Add prototype.
4692 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
4693 be represented if it has not been output.
4694
4161da12
AO
46952002-02-20 Alexandre Oliva <aoliva@redhat.com>
4696
4697 * combine.c (do_SUBST): Sanity check substitutions of
4698 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
4699 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
4700 CONST_INT into its operand.
4701 (known_cond): Likewise, for ZERO_EXTEND.
4702 * simplify-rtx.c (simplify_unary_operation): Fix condition to
4703 allow for simplification of wide modes. Reject CONST_INTs in
4704 ZERO_EXTEND when their actual mode is not given.
4705
3704ef74
AO
47062002-02-20 Alexandre Oliva <aoliva@redhat.com>
4707
4708 * c-decl.c (pushdecl): If no global declaration is found for an
4709 extern declaration in block scope, try a limbo one.
4710
7552da58
JJ
47112002-02-20 Jakub Jelinek <jakub@redhat.com>
4712
4713 PR c++/4401
4714 * c-common.c (pointer_int_sum): Moved from...
4715 * c-typeck.c (pointer_int_sum): ...here.
4716 * c-common.h (pointer_int_sum): Add prototype.
4717
00fae85d
JJ
47182002-02-20 Jakub Jelinek <jakub@redhat.com>
4719
4720 PR c++/5713
4721 * c-decl.c (duplicate_decls): Return 0 if issued error about
4722 redeclaration.
4723
4636c87e
JJ
47242002-02-20 Roger Sayle <roger@eyesopen.com>
4725 Jakub Jelinek <jakub@redhat.com>
4726
4727 PR c/4389
4728 * tree.c (host_integerp): Ensure that the constant integer is
4729 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
4730 when pos is zero or non-zero respectively. Clarify comment.
4731 * c-format.c (check_format_info_recurse): Fix host_integerp
4732 usage; the pos argument should be zero when assigning to a
4733 signed HOST_WIDE_INT.
4734
59bef189
RH
47352002-02-20 Richard Henderson <rth@redhat.com>
4736
4737 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
4738 of the operand, rather than assuming TImode.
4739 (ix86_expand_binop_builtin): Cope with commutative patterns
4740 using nonimmediate_operand for both operands.
4741 (ix86_expand_timode_binop_builtin): Likewise.
4742 (ix86_expand_store_builtin): Validate operand 1.
4743 (ix86_expand_unop1_builtin): Likewise.
4744
9338ffe6 47452002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 4746
9338ffe6
PB
4747 PR 5705
4748 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
4749
f322b423
RH
47502002-02-20 Richard Henderson <rth@redhat.com>
4751
4752 PR c/5615
4753 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
4754
d94084f7
TT
47552002-02-20 Tom Tromey <tromey@redhat.com>
4756
4757 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4758 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4759 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4760 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4761 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
4762 unconditionally.
4763
37fa124a
AM
4764Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
4765
4766 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
4767 for (const_int 0) in X not just INTVAL.
4768
6e5bb5ad
JM
47692002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
4770
4771 * doc/extend.texi: Avoid or reduce overfull hboxes.
4772
420e7dfa
DN
47732002-02-20 Diego Novillo <dnovillo@redhat.com>
4774
4775 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
4776 operations if the field does not start at a mode boundary.
4777
1b7a2af6
JS
47782001-02-20 Joel Sherrill <joel@OARcorp.com>
4779
4780 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
4781 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
4782 Also done for -Acpu and -Amachine.
4783
56cd5b95
NB
47842002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
4785
4786 * cppinit.c (init_dependency_output): Take deps output file
4787 from -o if none given with -MF. Suppress normal output.
c410d49e 4788 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
4789 * doc/cpp.texi, doc/invoke.texi: Update.
4790
042cdf71
ZW
47912002-02-19 Zack Weinberg <zack@codesourcery.com>
4792
4793 * toplev.c (output_quoted_string): Write unprintable
4794 characters with octal escapes.
4795
c1f11548
DE
47962002-02-19 David Edelsohn <edelsohn@gnu.org>
4797
4798 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
4799 really_call_used[VRSAVE_REGNO] if not Altivec.
4800
48012002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 4802
c1f11548
DE
4803 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
4804 MODE_MASK.
4805 (constant_pool_expr_1): Fix formatting.
4806 (rs6000_legitimize_reload_address): Likewise.
4807
c964d90e
RK
4808Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4809
4810 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
4811 now that we have one.
4812
ae34ac46
ZW
48132002-02-19 Zack Weinberg <zack@codesourcery.com>
4814
4815 * tree.h (struct tree_common): Remove aux. Add unused_0 at
4816 end of first block of bitfields (which was only seven bits);
4817 rename dummy to unused_1; remove comment which is no longer true.
4818
293c28ee
GS
48192002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
4820
4821 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
4822
7b8781c8
PB
48232002-02-19 Philip Blundell <pb@nexus.co.uk>
4824
0cb6c58d 4825 PR 5399
7b8781c8
PB
4826 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
4827 if generating PIC.
4828
4829 PR 5054
4830 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
4831 arm_is_longcall_p rather than inspecting call-type cookie
4832 directly.
4833 (call_value_insn) [TARGET_THUMB]: Likewise.
4834
5c464583
GS
48352002-02-19 Graham Stott <grahams@redhat.com>
4836
4837 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
4838
71c061e6
DE
48392002-02-19 David Edelsohn <edelsohn@gnu.org>
4840
4841 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
4842 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 4843 (FP_SAVE_INLINE): Delete.
71c061e6
DE
4844
4845 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
4846 * config/rs6000/eabi.asm: Remove ABI save restore routines.
4847 * config/rs6000/t-ppccomm: Build crtsavres.o.
4848 * config/rs6000/crtsavres.asm: New file.
4849
3a7731fd
PB
48502002-02-19 Philip Blundell <philb@gnu.org>
4851
4852 * config/arm/arm.c (use_return_insn): Don't reject interrupt
4853 functions.
4854 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
4855 (output_return_instruction): Allow interrupt functions to return with
4856 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
4857 (arm_expand_prologue): Subtract 4 before stacking LR in an
4858 interrupt function.
4859
14f583b8
PB
48602002-02-19 Philip Blundell <pb@nexus.co.uk>
4861
4862 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
4863 decl, not just FUNCTION_DECL.
4864 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
4865 (arm_assemble_integer): Likewise.
4866 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
4867 marked local.
c410d49e 4868
4cb7482c
MG
48692002-02-19 matthew green <mrg@eterna.com.au>
4870
4871 * config.gcc (sparc-*-netbsdelf*): Enable target.
4872 (sparc64-*-netbsd*): New target.
4873 * config/sparc/netbsd-elf.h: New file.
4874 * config/sparc/t-netbsd64: New file.
4875
2df3a718
GS
48762002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
4877
4878 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
4879
77f6c1eb
RS
48802002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
4881
4882 * doc/invoke.texi: explicitly list the style guidelines that
4883 -Weffc++ checks for.
4884
fd973d56
JH
4885Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
4886
4887 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
4888
30518e45
NB
48892002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
4890
4891 PR other/5718
4892 * gcc.c (cpp_unique_options): Treat -o as indicating object file
4893 only if not -E. If -E, pass -o through to the preprocessor.
4894
39ea5704
KH
48952002-02-19 Kazu Hirata <kazu@hxi.com>
4896
4897 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
4898 register number with an appropriate macro.
4899
7355dba7
BM
49002002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4901
4902 * doc/rtl.texi (Constants): Close @code tag.
4903
91c8aa9e
AH
49042002-02-19 Aldy Hernandez <aldyh@redhat.com>
4905
4906 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
4907 ("mmx_uavgv4hi3"): Same.
4908 ("pmulhrwv4hi3"): Same.
4909
4910 * tree-inline.c (walk_tree): Handle vectors.
4911
4912 * c-common.c (constant_expression_warning): Handle vectors.
4913 (overflow_warning): Same.
4914
4915 * sched-deps.c (sched_analyze_2): Handle vectors.
4916
4917 * rtlanal.c (rtx_unstable_p): Handle vectors.
4918 (rtx_varies_p): Same.
4919 (count_occurrences): Same.
4920 (regs_set_between_p): Same.
4921 (modified_between_p): Same.
4922 (modified_in_p): Same.
4923 (volatile_insn_p): Same.
4924 (volatile_refs_p): Same.
4925 (side_effects_p): Same.
4926 (may_trap_p): Same.
4927 (inequality_comparisons_p): Same.
4928 (replace_regs): Same.
4929 (computed_jump_p_1): Same.
4930
4931 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
4932 argument.
4933 (inner_mode_array): New.
4934 (copy_rtx): Handle vectors.
4935 (copy_most_rtx): Same.
4936 (rtx_equal_p): Same.
4937 (get_mode_alignment): Adjust for vectors.
4938
4939 * resource.c (mark_referenced_resources): Handle vectors.
4940 (mark_set_resources): Same.
4941
4942 * reload1.c (eliminate_regs): Handle vectors.
4943 (elimination_effects): Same.
4944 (scan_paradoxical_subregs): Same.
4945
4946 * reload.c (subst_reg_equivs): Handle vectors.
4947
4948 * regrename.c (scan_rtx): Handle vectors.
4949
4950 * regclass.c (reg_scan_mark_refs): Handle vectors.
4951
4952 * recog.c (find_single_use_1): Handle vectors.
4953
4954 * local-alloc.c (equiv_init_varies_p): Handle vectors.
4955 (contains_replace_regs): Same.
4956 (memref_referenced_p): Same.
4957
4958 * integrate.c (copy_rtx_and_substitute): Handle vectors.
4959 (subst_constants): Same.
4960
4961 * genattrtab.c (attr_copy_rtx): Handle vectors.
4962 (encode_units_mask): Same.
4963 (clear_struct_flag): Same.
4964 (count_sub_rtxs): Same.
4965
4966 * gcse.c (want_to_gcse_p): Handle vectors.
4967 (oprs_unchanged_p): Same.
4968 (hash_expr_1): Same.
4969 (oprs_not_set_p): Same.
4970 (expr_killed_p): Same.
4971 (compute_transp): Same.
4972 (store_ops_ok): Same.
4973
4974 * function.c (purge_addressof_1): Do not allow paradoxical subregs
4975 of vectors.
4976 (fixup_var_refs_1): Same.
4977 (instantiate_virtual_regs_1): Same.
4978
4979 * fold-const.c (operand_equal_p): Handle vectors.
4980 (fold): Same.
4981 (rtl_expr_nonnegative_p): Same.
4982
4983 * flow.c (mark_used_regs): Handle vectors.
4984
4985 * df.c (df_uses_record): Handle vectors.
4986
4987 * cselib.c (cselib_subst_to_values): Handle vectors.
4988 (cselib_mem_conflict_p): Same.
4989 (hash_rtx): Same.
4990
4991 * cse.c (canon_reg): Handle vectors.
4992 (fold_rt): Same.
4993 (cse_process_notes): Same.
4994 (count_reg_usage): Same.
4995 (canon_hash): Same.
4996
4997 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
4998
4999 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5000
5001 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5002 (gen_rtx): Handle CONST_VECTOR.
5003 (gen_const_vector_0): New.
5004 (copy_rtx_if_shared): CONST_VECTORs can be shared.
5005 (reset_used_flags): Same.
5006 (copy_insn_1): Same.
5007 (initializer_constant_valid_p): Handle VECTOR_CST.
5008
5009 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5010
5011 * doc/rtl.texi (Constants): Document const_vector.
5012 (CONST0_RTX): Update for vectors.
5013 (RTL sharing): Same.
5014
5015 * print-tree.c (print_node): Add case for VECTOR_CST.
5016
5017 * tree.h (TREE_VECTOR_CST_ELTS): New.
5018 (struct tree_vector): New.
5019 (union tree_node): Add vector node.
5020 (build_vector): Add prototype.
5021
5022 * tree.def (VECTOR_CST): New.
5023
5024 * tree.c (build_vector): New.
5025
5026 * expmed.c (make_tree): Handle CONST_VECTOR.
5027
5028 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5029 (CONST_VECTOR_ELT): New.
5030 (CONST_VECTOR_NUNITS): New.
5031
5032 * machmode.h (GET_MODE_INNER): New.
5033 (DEF_MACHMODE): Accept 8th arg.
5034
5035 * machmode.def: Add 8th argument for vector inner mode.
5036 Add inner vector modes for vectors.
5037
5038 * rtl.def (VEC_CONST): Remove.
5039 (CONST_VECTOR): New.
5040
5041 * expr.c (clear_storage): Allow vectors.
5042 (is_zeros_p): Handle VECTOR_CST.
5043
5044 * varasm.c (output_constant_pool): Handle vectors.
5045 (rtx_const): Add veclo and vechi fields.
5046 (kind): Add RTX_VECTOR.
5047 (decode_rtx_const): Add case for vector.
5048
5049 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 5050
91c8aa9e
AH
5051 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5052 constants. Force easy vector constants into memory.
5053 (easy_vector_constant): New.
5054 (emit_easy_vector_constant): New.
5055 (rs6000_legitimize_reload_address): Do not generate bad reloads on
5056 darwin.
5057
5058 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5059 instruction does.
5060 ("altivec_lvxl"): Same.
5061 (altivec_lvebx): Same.
5062 (altivec_lvehx): Same.
5063 (altivec_lvewx): Same.
5064 ("*movv4si_const0"): New.
5065 ("*movv4sf_const0"): New.
5066 ("*movv8hi_const0"): New.
5067 ("*movv16qi_const0"): New.
5068
d4d6d0ce
KH
50692002-02-18 Kazu Hirata <kazu@hxi.com>
5070
5071 * config/h8300/h8300.c (notice_update_cc): Use
5072 cc_status.value2.
5073
4915d3aa
KH
50742002-02-18 Kazu Hirata <kazu@hxi.com>
5075
5076 * config/h8300/h8300.md (divmod patterns): Change the
5077 constraints for operands[1] to register_operand.
5078
82be00ee
KH
50792002-02-18 Kazu Hirata <kazu@hxi.com>
5080
5081 * config/h8300/h8300-protos.h: Remove the prototype for
5082 p_operand.
5083 * config/h8300/h8300.c (p_operand): Remove.
5084 * config/h8300/h8300.md: Replace p_operand with
5085 const_int_operand.
5086
1768c26f
PB
50872002-02-18 Philip Blundell <pb@nexus.co.uk>
5088
5089 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5090 comment.
5091 (output_return_instruction): Allow use of LDR to unstack
5092 return addresss even for interrupt handlers or when
5093 interworking. If compiling for ARMv5, use interworking-safe
5094 return instructions by default. Remove duplicated code and
5095 lengthy "strcat" sequences.
5096
ccd84f51
FS
50972002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5098
5099 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5100 (LINK_EH_SPEC): Define.
5101 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5102
2c153108
UW
51032002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
5104
5105 * config/s390/s390.c (s390_emit_prologue): Do not set the
5106 frame_related flag for call-clobbered registers.
5107
e95d6b23
JH
5108Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
5109
5110 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5111 (construct_container): Fix handling of SSE operands.
5112 (ix86_expand_builtin): Fix handling of 64bit pointers.
5113 (mmx_maskmovq_rex): New pattern.
5114
c43a12b5
JH
5115Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
5116
5117 * regrename.c (kill_set_value): Handle subregs properly.
5118
aeb85a15
DB
51192002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
5120
5121 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 5122 from objc_class_name.
aeb85a15 5123
a615ca3e
RH
51242002-02-17 Richard Henderson <rth@redhat.com>
5125
5126 * config/alpha/alpha.c (some_small_symbolic_operand,
5127 some_small_symbolic_operand_1, split_small_symbolic_operand,
5128 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5129 Handle small SYMBOL_REFs anywhere, not just inside memories.
5130 * config/alpha/alpha-protos.h: Update.
5131 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5132 * config/alpha/alpha.md (small symbolic operand splitter): Update.
5133
ddb28441
RM
51342002-02-17 Roland McGrath <roland@frob.com>
5135
5136 * config.gcc (powerpc-*-gnu-gnualtivec*,
5137 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5138 * config/rs6000/gnu.h: New file.
5139 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5140 Grok "gnu" in rs6000_abi_name.
5141 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5142 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5143 Grok -mcall-gnu analogous to -mcall-linux et al.
5144 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5145 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5146 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5147
f6f8ada3
JJ
51482002-02-17 Jakub Jelinek <jakub@redhat.com>
5149
5150 PR c/3444:
5151 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5152 shortening.
5153
e16b32fc
PT
51542002-02-17 Philipp Thomas <pthomas@suse.de>
5155
5156 * config/cris/cris.h: Undefine STARTFILE_SPEC and
5157 ENDFILE_SPEC before (re)defining them.
5158
f9477efd
KH
51592002-02-17 Kazu Hirata <kazu@hxi.com>
5160
5161 * config/h8300/h8300.c: Fix formatting.
5162 * config/h8300/h8300.h: Likewise.
5163
404ae494
PT
51642002-02-17 Philipp Thomas <pthomas@suse.de>
5165
5166 * doc/tm.texi: Explain why empty strings should not be
5167 marked for translation.
5168
a52453cc
PT
51692002-02-17 Philipp Thomas <pthomas@suse.de>
5170
5171 * final.c (output_operand_lossage): Changed to accept
5172 printf style arguments. Change calls where necessary.
5173 * output.h (output_operand_lossage): Change declaration
5174 accordingly. Update copyright.
5175 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5176 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5177 Update copyright date where necessary.
c410d49e 5178
a52453cc
PT
5179 * config/i386/i386.c (print_operand): Likewise. Remove use of
5180 sprintf.
5181
5182 * config/cris/cris.c (cris_operand_lossage): Likewise.
5183 Rename parameter so that exgettext recognizes it as
5184 translatable message.
5185 (LOSE_AND_RETURN): Rename parameter to msgid.
5186
1c11abc4
KH
51872002-02-17 Kazu Hirata <kazu@hxi.com>
5188
5189 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5190 hard coded register number with an appropriate macro.
5191 (HARD_REGNO_MODE_OK): Likewise.
5192 (ARG_POINTER_REGNUM): Likewise.
5193 (STATIC_CHAIN_REGNUM): Likewise.
5194 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5195 * config/h8300/h8300.md (define_constants): Define more
5196 register numbers.
5197
a5d17ff3
PT
51982002-02-17 Philipp Thomas <pthomas@suse.de>
5199
5200 * config/i386/i386.h: Don't mark empty strings for translation.
5201
1a7289c4
L
52022002-02-16 H.J. Lu <hjl@gnu.org>
5203
5204 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5205
afb58288
ZW
52062002-02-16 Zack Weinberg <zack@codesourcery.com>
5207
5208 * cppinit.c (merge_include_chains): Check for brack being
5209 NULL before attempting to merge it with qtail.
5210
d2af4dbd
AC
52112002-02-16 Andrew Cagney <ac131313@redhat.com>
5212
5213 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5214 DBX_DEBUG.
5215
2e1ed1e3
JDA
52162002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5217
5218 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5219
604c75b2
JDA
52202002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5221
5222 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5223 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5224 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5225
1a42b072
RK
5226Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5227
7303604f 5228 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
5229 now only if !TARGET_FIX.
5230 (*movsi_nt_vms_fix): New pattern.
5231
c2ea1ac6
DR
52322002-02-16 Douglas B Rupp <rupp@gnat.com>
5233
5234 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5235 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5236 (alpha_sa_mask, alpha_sa_size): Reflect above change.
5237 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5238 (alpha_start_function, alpha_expand_epilogue): Likewise.
5239 (unicosmk_gen_dsib): Likewise.
5240
725e58b1
RK
5241Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5242
5243 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5244
13e58269
UW
52452002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
5246
c410d49e 5247 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
5248 check_and_change_labels, s390_final_chunkify): Delete.
5249 (s390_split_branches, s390_chunkify_pool): New functions.
5250 (s390_function_prologue): Call them.
c410d49e 5251
13e58269
UW
5252 * config/s390/s390.h (S390_REL_MAX): Delete.
5253 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5254
c410d49e 5255 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
5256 attribute calculation.
5257
5258
34d1b01d
DE
52592002-02-15 David Edelsohn <edelsohn@gnu.org>
5260
5261 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5262 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5263
be5cc51a
JDA
52642002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5265
5266 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5267 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5268 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5269
ee96ce90
RS
52702002-02-15 Richard Sandiford <rsandifo@redhat.com>
5271
5272 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5273
05fa709d
RS
52742002-02-15 Richard Sandiford <rsandifo@redhat.com>
5275
5276 * reload.c (find_dummy_reload): Check that an output register
5277 is valid for its mode.
5278
4606272b
AO
52792002-02-14 Alexandre Oliva <aoliva@redhat.com>
5280
9a360704
AO
5281 * combine.c (known_cond): After replacing the REG of a SUBREG, try
5282 to simplify it.
5283
4606272b
AO
5284 * function.c (assign_parms): Demote promoted argument passed by
5285 transparent reference.
5286
e62d89a1
JS
52872001-02-14 Joel Sherrill <joel@OARcorp.com>
5288
5289 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5290 -Acpu() and -Amachine() to eliminate warnings.
5291
6c4cf695
UW
52922002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
5293
5294 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5295
037f11ef
KH
52962002-02-14 Kazu Hirata <kazu@hxi.com>
5297
5298 * config/h8300/h8300-protos.h: Update the prototype for
5299 const_costs.
5300 * config/h8300/h8300.c (const_costs): Treat SET as a little
5301 more expensive operation.
5302 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5303 reference to const_costs.
5304
fdc76b09
HPN
53052002-02-14 Hans-Peter Nilsson <hp@axis.com>
5306
5307 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5308
d76e6800
JJ
53092002-02-14 Jakub Jelinek <jakub@redhat.com>
5310
5311 PR c/5503:
5312 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5313 use arguments from newtype.
5314
5ae590d7
EC
53152002-02-13 Eric Christopher <echristo@redhat.com>
5316
5317 * config/mips/mips.c (override_options): Add check for march/mipsX
5318 on the same command line. Fix error message in cpu processing.
5319 Remove architecture and ISA checks.
5320
b8513691
AH
53212002-02-14 Aldy Hernandez <aldyh@redhat.com>
5322
831c4e87 5323 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 5324
831c4e87 5325 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 5326
78c875e8
AH
53272002-02-14 Aldy Hernandez <aldyh@redhat.com>
5328
831c4e87
KC
5329 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5330 alternatives.
5331 ("*movv8hi_internal1"): Same.
5332 ("*movv16qi_internal1"): Same.
5333 ("*movv4sf_internal1"): Same.
78c875e8 5334
831c4e87
KC
5335 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5336 not push_reload for altivec modes.
78c875e8 5337
d76e6800 53382002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
5339
5340 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5341 all RTEMS targets including removal of #includes from config/*/rtems*.h
5342 file and adding them to tm_file setting. Added xm_defines=POSIX to
5343 many targets.
5344 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5345 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5346 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5347 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5348 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5349 config/m68k/rtemself.h: Ditto.
5350 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5351 config/mips/rtems64.h: Ditto.
5352 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5353 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5354 Ditto.
5355 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5356 config/sparc/rtemself.h: Ditto.
5357 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5358 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5359 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5360 more like arm-elf.
5361 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5362 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5363 target made more similar to i386-elf.
5364 * config/i386/t-rtems-i386: Added soft float support and multilibs.
5365 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5366 be similar to config/m68k/t-m68kelf.
5367 * gthr-rtems.h: Encapsulate with extern "C" for C++.
5368
8686336f
JH
5369Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
5370
5371 * regmove.c (kill_value): Handle subregs.
5372
558740bf
JH
5373Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
5374
5375 * i386.md (mul patterns): Allow memory operand to be first;
5376 add expanders where needed; fix constraints.
5377 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5378 Allow memory operand to be the first.
5379
5380 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5381 operands.
5382
21117a17
JJ
53832002-02-13 Jakub Jelinek <jakub@redhat.com>
5384
5385 PR c/5681:
5386 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5387 GET_MODE (x).
5388
ec65b2e3
JJ
53892002-02-13 Jakub Jelinek <jakub@redhat.com>
5390
5391 PR optimization/5547:
5392 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5393 all valid IA-32 address modes involving non-scaled %ebx and
5394 GOT/GOTOFF as displacement.
5395
ce50cae8
UW
53962002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
5397
5398 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5399 after emitting ltorg insns.
5400
5401 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5402 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5403 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5404 *abssf2): Fix "op_type" attribute.
5405
09eb789b
DR
54062002-02-13 Douglas B Rupp <rupp@gnat.com>
5407
2dbe67bb
DR
5408 * mkconfig.sh: Avoid using a subshell redirect.
5409 ($output.T): Change to $(output)T.
5410 (ENABLE_NLS): Remove unneeded undef.
5411
ea5b9a1f
DR
5412 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5413 * config/alpha/x-vms (libsubdir): Define.
5414
3deb00ce
DR
5415 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5416 register frame procedures. Optimize retrieving context.
5417
09eb789b
DR
5418 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5419 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5420 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5421
1abade85
RK
5422Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5423
5424 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5425 Make same change as for find_base_value.
5426
c283e63f
KH
54272002-02-13 Kazu Hirata <kazu@hxi.com>
5428
5429 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5430 of QImode and SImode.
5431
86039100
KH
54322002-02-13 Kazu Hirata <kazu@hxi.com>
5433
5434 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5435 length computation of movsi.
5436 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5437
e1429da0
KH
54382002-02-13 Kazu Hirata <kazu@hxi.com>
5439
5440 * config/h8300/h8300.md (subqi3): Tighten the predicate for
5441 operands[2] to register_operand.
5442
aebfea10
JH
5443Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
5444
5445 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5446
0ec4e2a8
AH
54472002-02-12 Aldy Hernandez <aldyh@redhat.com>
5448
831c4e87
KC
5449 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5450 for altivec_lvx* and altivec_stvx*.
5451 ("*movv4si_internal"): Add constraint for loading from GPRs.
5452 ("*movv8hi_internal1"): Same.
5453 ("*movv16qi_internal1"): Same.
5454 ("*movv4sf_internal1"): Same.
0ec4e2a8 5455
831c4e87 5456 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 5457
831c4e87
KC
5458 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5459 altivec_register_operand.
0ec4e2a8 5460
b007569d
HPN
54612002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
5462
5463 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5464 handle SYMBOL_REF.
5465
e6834654
SS
54662002-02-13 Stan Shebs <shebs@apple.com>
5467
831c4e87
KC
5468 * c-typeck.c (digest_init): Handle vectors.
5469 (really_start_incremental_init): Same.
5470 (pop_init_level): Same.
5471 (process_init_element): Same.
e6834654 5472
831c4e87 5473 * varasm.c (output_constant): Same.
e6834654 5474
831c4e87
KC
5475 * expr.c (clear_storage): Same.
5476 (store_constructor): Same.
e6834654 5477
d9b3eb63
EC
54782002-02-12 Eric Christopher <echristo@redhat.com>
5479
5480 * explow.c (hard_function_value): Add comment explaining
5481 signed/unsigned comparison.
5482
56d44285
JJ
54832002-02-12 Jakub Jelinek <jakub@redhat.com>
5484
5485 * jump.c (never_reached_warning): Add finish argument.
5486 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
5487 real insn after end.
5488 * rtl.h (never_reached_warning): Adjust prototype.
5489 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
5490 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
5491 never_reached_warning.
5492
fc209487
GS
54932002-02-12 Graham Stott <grahams@redhat.com>
5494
5495 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
5496
1e41e866
KH
54972002-02-12 Kazu Hirata <kazu@hxi.com>
5498
5499 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
5500 logical shifts on H8/300.
5501 (shift_alg_si): Improve several shifts on H8/300.
5502 (get_shift_alg): Likewise.
5503
a36a47ad
GS
55042002-02-12 Graham Stott <grahams@redhat.com>
5505
5506 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
5507
0aacc8ed
RK
5508Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5509
5510 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
5511 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
5512
a02ac966
HPN
55132002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
5514
5515 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
5516 non-CONST_INT through default_assemble_integer.
5517 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
5518 <case 8>: Abort for CONST_DOUBLE.
5519
d6e06ddc
JDA
55202002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5521
5522 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
5523 is specified.
5524 * config/pa/pa-linux.h (LIB_SPEC): Delete.
5525 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5526
515342a8
AH
55272002-02-11 Andrew Haley <aph@cambridge.redhat.com>
5528
5529 * config/stormy16/stormy16.md (zero_extendqihi2): New.
5530
cddd8b72
AO
55312002-02-11 Alexandre Oliva <aoliva@redhat.com>
5532
66df7a98
AO
5533 * regrename.c (regrename_optimize): Don't accept a
5534 part-clobbered register if the replaced register is not part
5535 clobbered.
5536
841404cd
AO
5537 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
5538 take padding into account when computing the argument value.
5539
1d1ade42
AO
5540 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
5541
cddd8b72
AO
5542 * combine.c (try_combine): Apply substitutions in
5543 CALL_INSN_FUNCTION_USAGE too.
5544
5c665b88
AH
55452002-02-11 Aldy Hernandez <aldyh@redhat.com>
5546
77f6c1eb
RS
5547 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
5548 __builtin_altivec_abs*.
5549 (bdesc_abs): New.
5c665b88 5550
77f6c1eb
RS
5551 * config/rs6000/rs6000.h (rs6000_builtins): Add
5552 ALTIVEC_BUILTIN_ABS*.
5c665b88 5553
77f6c1eb
RS
5554 * config/rs6000/altivec.h: Use const char for builtins expecting
5555 literals.
5556 (vec_abs): New versions for C and C++.
5557 (vec_abss): Same.
5c665b88 5558
3494f1b4
KH
55592002-02-10 Kazu Hirata <kazu@hxi.com>
5560
5561 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
5562 using Pmode.
5563
72431aef
KH
55642002-02-10 Kazu Hirata <kazu@hxi.com>
5565
5566 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
5567 constant definition from h8300.md.
5568 (FRAME_POINTER_REGNUM): Likewise.
5569 * config/h8300/h8300.md (define_constants): Add FP_REG.
5570
87e4ee91
KH
55712002-02-10 Kazu Hirata <kazu@hxi.com>
5572
5573 * config/h8300/h8300.c (print_operand): Remove redundant code.
5574
9c188705
KH
55752002-02-10 Kazu Hirata <kazu@hxi.com>
5576
5577 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
5578 * config/h8300/h8300.c (byte_reg): Make it static.
5579
fba78abb
RH
55802002-02-10 Richard Henderson <rth@redhat.com>
5581
5582 PR c/5623
5583 * c-typeck.c (incomplete_type_error): Handle flexible array members.
5584
65739e62
RH
55852002-02-10 Richard Henderson <rth@redhat.com>
5586
5587 PR c++/5624
5588 * tree.c (append_random_chars): Don't abort if main_input_filename
5589 does not exist.
5590
247cb9df
HPN
55912002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
5592
5593 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
5594
232bd029
KH
55952002-02-10 Kazu Hirata <kazu@hxi.com>
5596
65739e62 5597 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
5598 (pushhi1): Likewise.
5599
276ef573
JDA
56002002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
5601
5602 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
5603 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
5604
617e9ee5
DB
56052002-02-09 David O'Brien <obrien@FreeBSD.org>
5606
5607 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
5608 remove MASK_VIS.
5609 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
5610
6dfa4005
KH
56112002-02-09 Kazu Hirata <kazu@hxi.com>
5612
5613 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
5614 a half of an SImode register on H8/300.
5615
749e7b80
JH
5616Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
5617
5618 * i386.md (movdi_2): Add missing '!'.
5619
ca77d87c
KH
56202002-02-09 Kazu Hirata <kazu@hxi.com>
5621
5622 * config/h8300/h8300.h: Fix formatting. Remove commented-out
5623 definitions.
5624
16c96304
KH
56252002-02-09 Kazu Hirata <kazu@hxi.com>
5626
5627 * config/h8300/h8300.md (length): Correct the distance valid
5628 for the short branch.
5629
a364bc90
KH
56302002-02-09 Kazu Hirata <kazu@hxi.com>
5631
5632 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
5633
e4ec2cac
AO
56342002-02-09 Alexandre Oliva <aoliva@redhat.com>
5635
a138247b
AO
5636 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
5637 registers in SImode.
5638 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
5639 part-clobbered.
5640
2b1fd83f
AO
5641 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
5642 patch.
d9b3eb63 5643
fa5322fa
AO
5644 Contribute sh64-elf.
5645 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5646 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
5647 (sh_cannot_modify_jumps_p): New function.
5648 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
5649 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
5650 (sh_ms_bitfield_layout_p): New function.
5651 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5652 Zack Weinberg <zack@codesourcery.com>
5653 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
5654 expand_simple_binop instead of expand_binop.
5655 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
5656 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
5657 use of .quad and .uaquad.
5658 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
5659 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
5660 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5661 * config/sh/sh.md (movdi_const, movdi_const_32bit,
5662 movdi_const_16bit): Make sure all CONSTs have modes.
5663 (sym2PIC): Ditto, but by adjusting all callers.
5664 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
5665 if the prologue calls the SHmedia argument decoder or register
5666 saver.
5667 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5668 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
5669 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
5670 (sh_expand_epilogue): Don't emit USE of return target register.
5671 (prepare_move_operands): Legitimize DImode PIC addresses.
5672 (sh_media_register_for_return): Skip tr0, used to initialize the
5673 PIC register.
5674 (sh_expand_prologue): Remove explicit USE of return register.
5675 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
5676 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
5677 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
5678 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
5679 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
5680 EXTRA_CONSTRAINT_T.
5681 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
5682 (MOVI_SHORI_BASE_OPERAND_P): New.
5683 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
5684 (EXTRA_CONSTRAINT_T): Define in terms of them.
5685 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
5686 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
5687 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
5688 alternatives supporting TARGET_REGS.
5689 (UNSPEC_GOTPLT): New constant.
5690 (movdi split): Move incrementing of LABEL_NUSES...
5691 (movdi_const, movdi_const_32bit): Here. Use
5692 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
5693 (movdi_const_16bit): New.
5694 (call, call_value) [flag_pic]: Use GOTPLT.
5695 (call_pop, call_value_pop): New expands.
5696 (call_pop_compact, call_pop_rettramp): New insns.
5697 (call_value_pop_compact, call_value_pop_rettramp): New insns.
5698 (sibcall) [flag_pic]: Use GOT.
5699 (builtint_setjmp_receiver): Remove bogus, unused expand.
5700 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
5701 (*pt, *ptb, ptrel): New insns.
5702 (sym2GOT): Handle DImode GOT.
5703 (sym2GOTPLT, symGOTPLT2reg): New expands.
5704 (sym2PIC): New expand.
5705 (shcompact_return_tramp): Use GOTPLT to return trampoline.
5706 (shcompact_return_tramp_i): Use return register explicitly.
5707 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
5708 disable flag_reorder_blocks.
5709 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
5710 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
5711 clobbers, for clarity.
5712 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
5713 restoring of r0 in macl as MAYBE_DEAD.
5714 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5715 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
5716 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
5717 alter_subreg all over.
5718 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
5719 reload, instead of emitting instructions that would require
5720 reloading.
5721 (casesi_load_media): Add missing modes.
5722 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
5723 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
5724 as used if the argument decoder is called.
5725 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5726 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
5727 Pmode, then extend it to DImode if necessary.
5728 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5729 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
5730 constants in FPU-enabled SHmedia, let them be loaded from memory.
5731 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5732 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
5733 Adjust whitespace in assembly output templates.
5734 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5735 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
5736 mode of if_then_else.
5737 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
5738 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
5739 sh.h.
5740 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
5741 Joern Rennecke <amylaar@redhat.com>
5742 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
5743 (SUBTARGET_CPP_PTR_SPEC): New.
5744 (SUBTARGET_CPP_SPEC): Remove.
5745 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5746 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5747 Fix typo in previous checkin.
5748 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
5749 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
5750 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
5751 Alexandre Oliva <aoliva@redhat.com>
5752 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
5753 what single FP register can hold for SHmedia target.
5754 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5755 Alexandre Oliva <aoliva@redhat.com>
5756 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5757 Do not split into SUBREG.
5758 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
5759 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
5760 and added new functions as specified in SH5 ABI r9.
5761 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
5762 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
5763 8-byte boundary.
5764 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
5765 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
5766 gen_consttable_4 and gen_consttable_8. Emit multiple labels
5767 and consttable_window_ends.
5768 2001-06-03 Graham Stott <grahams@redhat,com>
5769 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
5770 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
5771 * config/sh/sh.c (print_operand): Handle floating-point pair,
5772 vector and matrix registers.
5773 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
5774 vector modes into account.
5775 * config/sh/sh.md (movv2sf): Split move between registers into
5776 movdf.
5777 (movv4sf, movv16sf): Introduce insns that get split only after
5778 reload.
5779 * config/sh/shmedia.h: Fix Copyright dates.
5780 * config/sh/ushmedia.h: Likewise. Move loop counter
5781 declarations into conditionals that uses them.
5782 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
5783 loop boundary.
5784 * config/sh/sshmedia.h: Fix Copyright dates.
5785 (sh_media_PUTCFG): Fix constraints.
5786 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
5787 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
5788 ptrmemfunc_vbit_in_delta for SH5.
5789 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
5790 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
5791 * invoke.texi: Likewise.
5792 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5793 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
5794 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
5795 GCC_pop_shmedia_regs_nofpu): New global symbols.
5796 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
5797 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
5798 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
5799 compact function with nonlocal labels.
5800 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
5801 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
5802 (initial_elimination_offset): Account for their stack space.
5803 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
5804 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
5805 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
5806 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
5807 least one of the operands to be a register.
5808 (movv2sf): Likewise. Renamed to movv2sf_i.
5809 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
5810 prepare_move_operands() before emitting SHmedia insns.
5811 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
5812 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
5813 Don't save nor initialize r12. Don't mis-align the stack.
5814 Pad the code with a nop.
5815 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
5816 stack.
5817 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
5818 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
5819 [__SHMEDIA__]: Implement.
5820 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
5821 * config/sh/sh.md: Set latency of `pt' closer to reality.
5822 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
5823 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
5824 Set move, load and store type attributes.
5825 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
5826 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
5827 profiling.
5828 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
5829 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
5830 * config/sh/sh.c (sh_media_register_for_return): New function.
5831 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
5832 branch-target register.
5833 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
5834 * config/sh/sh.md (return_media_i): Use any call-clobbered
5835 branch-target register.
5836 (return_media): If r18 wasn't copied in the prologue, copy it
5837 here.
5838 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
5839 Clear class FP0_REGS.
5840 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
5841 from elf.h.
5842 2001-03-08 DJ Delorie <dj@redhat.com>
5843 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
5844 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
5845 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
5846 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
5847 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
5848 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
5849 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
5850 return value correctly for call_cookie.
5851 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
5852 * config/sh/crt1.asm (start): Modified so as to call
5853 ___setup_argv_and_call_main.
5854 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
5855 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
5856 SHmedia mode.
5857 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
5858 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
5859 (STRIP_NAME_ENCODING): Use it.
5860 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
5861 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
5862 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
5863 prepare_scc_operands().
5864 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
5865 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
5866 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
5867 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
5868 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
5869 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
5870 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
5871 used in shcompact_incoming_args.
5872 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
5873 change.
5874 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
5875 mode.
5876 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
5877 Adjust accordingly.
5878 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
5879 Simplify. Adjust. Add sanity check.
5880 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
5881 FPU_SINGLE_BIT.
5882 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
5883 TARGET_SHCOMPACT.
5884 (udivsi3, divsi3): Use them.
5885 (force_mode_for_call): New insn.
5886 (call, call_value, sibcall_value): Emit it before SHcompact
5887 calls.
5888 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
5889 * config/sh/sh.md (call, call_value, sibcall): Make sure the
5890 call cookie is non-NULL before taking its value.
5891 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
5892 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
5893 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
5894 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
5895 block.
5896 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
5897 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
5898 temporary for stack adjusts. Use MACL and MACH to pass
5899 arguments to shcompact_incoming_args.
5900 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
5901 clobber r1.
5902 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
5903 (nested_trampoline): Load static chain address into r1.
5904 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
5905 2001-01-07 Alexandre Oliva <aoliva@redhat.com
5906 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
5907 fp_arith_reg_operand().
5908 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
5909 * config/sh/sh.md (casesi): Sign-extend the first two operands,
5910 and use signed compares for them.
5911 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
5912 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
5913 ones properly aligned.
5914 (find_barrier): Account for extra alignment needed for 8-byte wide
5915 constants.
5916 (machine_dependent_reorg): Require a label for the second 4-byte
5917 constant after an 8-byte one.
5918 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
5919 change.
5920 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
5921 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
5922 last_float when switching float modes.
5923 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
5924 auto-increment for general-purpose registers.
5925 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
5926 result.
5927 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
5928 for stack adjust.
5929 * config/sh/sh.c (sh_builtin_saveregs): Support using all
5930 registers for varargs.
5931 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
5932 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
5933 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
5934 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
5935 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
5936 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
5937 call_cookie accordingly.
5938 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
5939 (SHCOMPACT_BYREF): Likewise.
5940 (SHCOMPACT_FORCE_ON_STACK): New macro.
5941 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
5942 (sh_builtin_saveregs): Likewise.
5943 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5944 shcompact_incoming_args): Use new shift values. Support
5945 sequences of consecutive and non-consecutive pushes/pops.
5946 * config/sh/sh.md (return): Don't explicitly use PR_REG.
5947 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5948 * config/sh/sh.h (TEXT_SECTION): Define.
5949 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
5950 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
5951 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
5952 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
5953 return values on FPU-enabled SHmedia.
5954 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
5955 FPU-enabled SHmedia.
5956 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
5957 value is returned in a non-FP reg and is not returned by
5958 reference.
5959 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
5960 jump_ind.
5961 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
5962 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
5963 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
5964 quad-aligned to be passed by callee-copy reference.
5965 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
5966 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
5967 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
5968 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
5969 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
5970 copying low-numbered FP regs to r7 and r8.
5971 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
5972 FP regs to general-purpose regs only if the copy was passed on the
5973 stack.
5974 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
5975 copying FP reg to r9.
5976 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
5977 copy FP regs to general-purpose regs only in outgoing calls.
5978 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 5979 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
5980 HOST_WIDE_INT.
5981 * config/sh/sh.h (struct sh_args): Document all fields.
5982 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
5983 passed partially on the stack should not consider making
5984 sibcalls.
5985 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
5986 stack_regs only for incoming calls. When passing FP args,
5987 make sure there are FP regs available before modifying
5988 call_cookie.
5989 (SHCOMPACT_BYREF): Pass double args in general-purpose
5990 registers by reference.
5991 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
5992 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
5993 attempt to generate sibcalls if the caller got any arguments
5994 by reference.
5995 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
5996 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
5997 to 8-byte boundaries.
5998 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
5999 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6000 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6001 stored in the stack.
6002 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6003 for the offsets to have the ISA bit set.
6004 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
6005 invocation. Use beq instead of bgt to mark end of sequence of
6006 loads.
6007 (shcompact_incoming_args): Fix store of r2. Use beq instead of
6008 bgt to mark end of sequence of stores.
6009 * config/sh/sh.c (arith_operand): Don't check whether
6010 CONST_OK_FOR_J for now.
6011 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6012 instead of long for conversion.
6013 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
6014 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6015 before passing it to fprintf.
6016 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
6017 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6018 Call set_fpscr before reading/writing SR.
6019 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6020 Call set_fpscr.
6021 * config/sh/lib1funcs.asm: Add `.align 2' directives before
6022 SHmedia code.
6023 (FMOVD_WORKS): Define on SH5 with FPU.
6024 (set_fpscr): Define on SH5. Remove separate _fpscr_values
6025 setting.
6026 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6027 _fpscr_values.
6028 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
6029 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6030 address.
6031 (ia_main_table): Ditto.
6032 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
6033 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6034 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6035 the definitions from sh.h.
6036 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6037 TARGET_SH5.
6038 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6039 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6040 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6041 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
6042 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6043 Increment LABEL_NUSES.
d9b3eb63 6044
fa5322fa
AO
6045 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6046 TARGET_SH5.
6047 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6048 defined.
6049 * config/sh/elf.h (SIZE_TYPE): Likewise.
6050 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6051 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6052 shcompact_incoming_args): Load switch table addresses using
6053 datalabel.
6054 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6055 (NO_BUILTIN_SIZE_TYPE): Define.
6056 (SIZE_TYPE): Don't define.
6057 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6058 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6059 definition of __SH5__=32 for -m5-compact-nofpu.
6060 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6061 ADDR_DIFF_VEC.
6062 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
6063 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6064 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
6065 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6066 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6067 (INSN_LENGTH_ALIGNMENT): Likewise.
6068 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6069 * config/sh/sh.md (call, call_value, sibcall): Simplify
6070 copying of non-branch-target register.
6071 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 6072 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
6073 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6074 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6075 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6076 floating-point values as structs.
6077 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6078 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6079 general-purpose register.
6080 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6081 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6082 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6083 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6084 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6085 (ENCODE_SECTION_INFO): Enclose variables and constants in
6086 DATALABEL unspecs.
6087 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6088 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6089 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6090 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6091 only for LABEL_REFs. For SYMBOL_REFs, prepend
6092 SH_DATALABEL_ENCODING to the symbol name.
6093 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6094 convert_mode().
6095 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6096 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6097 UNSPEC_DATALABEL.
6098 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6099 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6100 (DATALABEL_REF_P): Don't require CONST.
6101 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6102 REL label.
6103 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
6104 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6105 right.
6106 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6107 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6108 Use shallow_copy_rtx and PUT_MODE to change the mode of
6109 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6110 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6111 on SHmedia using GENERAL_REGs.
6112 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6113 bltu_media_i): Fix reversion of conditions.
6114 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6115 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6116 * config/sh/sh.c (output_far_jump): Save r13 in macl.
6117 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
6118 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6119 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
6120 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6121 (GCC_nested_trampoline): Likewise.
6122 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6123 * config/sh/sh.c (gen_datalabel_ref): Define.
6124 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6125 (INITIALIZE_TRAMPOLINE): Likewise.
6126 (TRAMPOLINE_ADJUST_ADDRESS): Define.
6127 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6128 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6129 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6130 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6131 (ic_invalidate): Adjust for SH5.
6132 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6133 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6134 _nested_trampoline.
6135 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
6136 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6137 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6138 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6139 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6140 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6141 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6142 * config/sh/sh.c (target_reg_operand): Match only target-branch
6143 registers and pseudos that aren't virtual registers.
6144 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6145 Copy operands that don't match target_reg_operand to pseudos.
6146 (call_media, call_value_media, sibcall_media): Use
6147 target_reg_operand instead of target_operand.
6148 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 6149 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
6150 * config/sh/sh.c (target_reg_operand): Match hardware registers
6151 other than branch-target registers.
6152 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6153 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6154 (fpscr_values) [SH5 == 32]: Define.
6155 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6156 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6157 Handle function addresses coming in SUBREGs.
6158 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
6159 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6160 shcompact_return_trampoline): Use datalabel where appropriate.
6161 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
6162 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6163 general-purpose register to copy one branch-target register to
6164 another.
6165 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6166 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6167 SYMBOL_REFs with VOIDmode.
6168 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6169 bltu_media_i): New insns.
6170 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6171 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6172 (INIT_CUMULATIVE_ARGS): Likewise.
6173 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
6174 * machmode.def (V16SFmode): New mode.
6175 * c-common.c (type_for_mode): Support V2SF and V16SF.
6176 * tree.c (build_common_tree_nodes_2): Likewise.
6177 * tree.h (tree_index): Likewise.
6178 * calls.c (emit_call_1): Take args_so_far. Adjust all
6179 callers. Introduce CALL_POPS_ARGS.
6180 * tm.texi (CALL_POPS_ARGS): Document.
6181 * config/sh/crt1.asm: Implement in SHmedia mode.
6182 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6183 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6184 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6185 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6186 Implement divsi and udivsi in SHmedia mode. Introduce
6187 SHcompact trampolines.
6188 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6189 only in SHmedia64.
6190 (regno_reg_class): Rewrite.
6191 (fp_reg_names): Remove.
6192 (sh_register_names, sh_additional_register_names): New.
6193 (print_operand): Added `u'. Support SUBREGs in addresses.
6194 Add parentheses around shifted CONSTs.
6195 (output_file_start): Output .mode and .abi directives.
6196 (shiftcosts, addsubcosts, multcosts): Adjust.
6197 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
6198 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
6199 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
6200 bytes, not registers. Take into account the need for the
6201 SHcompact incoming args trampoline. Adjust all callers.
6202 (sh_expand_prologue): Take stack_regs into account. Call
6203 incoming args trampoline. Keep stack aligned as per SH5 ABI.
6204 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
6205 stack aligned as per SH5 ABI.
6206 (sh_builtin_saveregs): Support SH5 ABI.
6207 (sh_build_va_list, sh_va_start): Likewise.
6208 (initial_elimination_offset): Take alignment into account.
6209 Compute location of PR according to the SH5 stack frame.
6210 (arith_reg_operand): Reject branch-target registers.
6211 (shmedia_6bit_operand): New.
6212 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6213 (target_reg_operand): Match DImode only. Accept SUBREGs.
6214 (target_operand): New.
6215 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6216 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
6217 SIBCALL_REGS for SHmedia.
6218 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6219 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6220 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6221 (TARGET_SWITCHES): New SH5 flags.
6222 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
6223 VALID_REGISTER_P to disable unsupported registers.
6224 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6225 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6226 (FUNCTION_ARG_PADDING): Define.
6227 (FASTEST_ALIGNMENT): Adjust.
6228 (SH_REGISTER_NAMES_INITIALIZER): New.
6229 (sh_register_names): Declare.
6230 (DEBUG_REGISTER_NAMES): Define.
6231 (REGISTER_NAMES): Define based on sh_register_names.
6232 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6233 (sh_additional_register_names): Declare.
6234 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6235 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6236 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6237 (REGISTER_NATURAL_MODE): Define.
6238 (FIRST_PSEUDO_REGISTER): Adjust.
6239 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6240 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6241 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6242 (VECTOR_MODE_SUPPORTED_P): Define.
6243 (REG_CLASS_CONTENTS): Adjust.
6244 (SMALL_REGISTER_CLASSES): Adjust.
6245 (REG_ALLOC_ORDER): Adjust.
6246 (INDEX_REG_CLASS): Adjust.
6247 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6248 (CONST_OK_FOR_LETTER_P): Adjust.
6249 (PREFERRED_RELOAD_CLASS): Adjust.
6250 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6251 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6252 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6253 (FIRST_FP_PARM_REG): Adjust.
6254 (CALL_POPS_ARGS): Define.
6255 (FUNCTION_ARG_REGNO_P): Adjust.
6256 (struct sh_args): New fields.
6257 (GET_SH_ARG_CLASS): Adjust.
6258 (INIT_CUMULATIVE_ARGS): Adjust.
6259 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6260 (FUNCTION_ARG_ADVANCE): Adjust.
6261 (FUNCTION_ARG): Adjust.
6262 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6263 (FUNCTION_ARG_CALLEE_COPIES): Define.
6264 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6265 (STRICT_ARGUMENT_NAMING): Define.
6266 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6267 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6268 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6269 (SETUP_INCOMING_VARARGS): Adjust.
6270 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6271 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6272 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6273 (SUBREG_OK_FOR_INDEX_P): Adjust.
6274 (EXTRA_CONSTRAINT_S): Update.
6275 (EXTRA_CONSTRAINT_T): New.
6276 (EXTRA_CONSTRAINT): Adjust.
6277 (GO_IF_LEGITIMATE_INDEX): Adjust.
6278 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6279 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6280 (MOVE_MAX): Adjust.
6281 (MAX_MOVE_MAX): Define.
6282 (Pmode): Adjust.
6283 (CONST_COSTS): Adjust.
6284 (REGISTER_MOVE_COST): Adjust.
6285 (BRANCH_COST): Adjust.
6286 (TEXT_SECTION_ASM_OP): Adjust.
6287 (DBX_REGISTER_NUMBER): Adjust.
6288 (ASM_OUTPUT_DOUBLE_INT): New.
6289 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6290 (PREDICATE_CODES): Adjust.
6291 (PROMOTE_MODE): Adjust.
6292 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6293 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6294 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6295 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6296 (DR0_REG, DR2_REG, DR4_REG): Renumber.
6297 (TR0_REG, TR1_REG, TR2_REG): New.
6298 (XD0_REG): Renumber.
6299 (UNSPEC_COMPACT_ARGS): New.
6300 (type): Added pt and ptabs.
6301 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 6302 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
6303 (pt): New function unit.
6304 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
6305 Add whitespace between operands of SHmedia instructions.
6306 (movdicc): Fix.
6307 (adddi3_media, addsi3_media): Adjust constraints.
6308 (subsi3) [SHmedia]: Force operand 1 into a register.
6309 (udivsi3_i1_media, udivsi3_i4_media): New.
6310 (udivsi3): Support SHmedia.
6311 (divsi3_i1_media, divsi3_i4_media): New.
6312 (divsi3): Support SHmedia.
6313 (anddi3, iordi3, xordi3): Adjust constraints.
6314 (zero_extendhidi2, zero_extendqidi2): New.
6315 (extendsidi2, extendhidi2, extendqidi2): New.
6316 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6317 (pop_e, pop_fpul, pop_4): Likewise.
6318 (movsi_media): Support FP and BT registers.
6319 (movsi_media_nofpu): New. Adjust splits to DImode.
6320 (lduw, ldub): Renamed to zero_extend* above.
6321 (movqi_media): Fix typo.
6322 (movdi_media): Support FP and BT registers.
6323 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
6324 (movdi_const_32bit): New.
6325 (shori_media): Require immediate operand. Use `u' for output.
6326 (movdf_media, movsf_media): Simplified.
6327 (movdf_media_nofpu, movsf_media_nofpu): New.
6328 (movdf, movsf): Adjust
6329 (movv2sf, movv2sf, movv16sf): New.
6330 (beq_media, beq_media_i): Adjust constraints. Don't use
6331 scratch BT register.
6332 (bne_media, bne_media_i): Likewise.
6333 (bgt_media, bgt_media_i): Likewise.
6334 (bge_media, bge_media_i): Likewise.
6335 (bgtu_media, bgtu_media_i): Likewise.
6336 (bgeu_media, bgeu_media_i): Likewise.
6337 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6338 bunordered): Emit jump insn. Force operands to registers when
6339 needed.
6340 (jump_media, jump): Simplify.
6341 (call_compact, call_compact_rettramp): New.
6342 (call_value_compact, call_value_compact_rettramp): New.
6343 (call_media, call_value_media): Simplify.
6344 (sibcall_compact, sibcall_media): New.
6345 (call, call_value): Adjust for SHmedia and SHcompact.
6346 (sibcall, sibcall_value, untyped_call): Likewise.
6347 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6348 (indirect_jump): Adjust for SHmedia.
6349 (casesi_jump_media): New.
6350 (nop): Re-enable for SHmedia.
6351 (call_site): Restrict to SH1.
6352 (casesi): Adjust for SHmedia.
6353 (casesi_shift_media, casesi_load_media): New.
6354 (return): Explicitly use PR register. Call return trampoline
6355 on SHcompact.
6356 (return_i): Explicitly use PR register.
6357 (shcompact_return_tramp, shcompact_return_tramp_i): New.
6358 (return_media): Adjust.
6359 (shcompact_incoming_args): New.
6360 (epilogue): Adjust.
6361 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6362 (movstrsi): Disable on SH5.
6363 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6364 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6365 (subsf3, subsf3_media): Likewise.
6366 (mulsf3, mulsf3_media, mac_media): Likewise.
6367 (divsf3, divsf3_media): Likewise.
6368 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
6369 (floatsisf2, fux_truncsfsi2): Likewise.
6370 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
6371 constraints.
6372 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6373 (cmpunsf_media, cmpsf): Likewise.
6374 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6375 (abssf2, abssf2_media): Likewise.
6376 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6377 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6378 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
6379 (floatsidf2, fix_truncdfsi2): Likewise.
6380 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
6381 constraints.
6382 (cmpeqdf_media, cmpgtdf_media): Likewise.
6383 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6384 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6385 (absdf2, absdf2_media): Likewise.
6386 (extendsfdf2, extendsfdf2_media): Likewise.
6387 (truncsfdf2, truncsfdf2_media): Likewise.
6388 * config/sh/sh64.h: New file.
6389 * config/sh/t-sh64: New file.
6390 * config/sh/shmedia.h: New file.
6391 * config/sh/ushmedia.h: New file.
6392 * config/sh/sshmedia.h: New file.
6393 * configure.in: Added sh64-*-elf.
6394 * configure: Rebuilt.
6395 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
6396 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6397 (reg_class_from_letter): Use `b' for TARGET_REGS.
6398 (print_operand): Support `%M', `%m', `AND' and
6399 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
6400 (andcosts): Adjust for SHmedia.
6401 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6402 Likewise.
6403 (target_reg_operand): New function.
6404 * config/sh/sh-protos.h (target_reg_operand): Declare.
6405 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6406 FP registers on SH5.
6407 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6408 on SH4.
6409 (TARGET_REGISTER_P): New macro.
6410 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6411 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6412 (EXTRA_CONSTRAINT_S): New macro.
6413 (EXTRA_CONSTRAINT): Adjust.
6414 (FLOAT_TYPE_SIZE): Define to 32.
6415 (Pmode): DImode on SHmedia.
6416 (CONST_COSTS): Adjust for SHmedia literals.
6417 (PREDICATE_CODES): Added target_reg_operand.
6418 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6419 * config/sh/sh.md: Remove all attrs from SHmedia insns.
6420 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6421 (cmpdi): Accept SHmedia.
6422 (movdicc_false, movdicc_true): New insns.
6423 (movdicc): New expand.
6424 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6425 no_new_pseudos.
6426 (addsi3_media): Match `S' constraint.
6427 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6428 (negdi2): Expand for SHmedia.
6429 (one_cmpldi2): New expand.
6430 (zero_extendsidi2): Change from expand to insn.
6431 (extendsidi2): Add constraints.
6432 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
6433 LD/ST address. Fix SI immediate loading split.
6434 (movhi_media, movqi_media, lduw, ldub): New insns.
6435 (movhi, movqi): Accept SHmedia.
6436 (shori_media, movdi_media): Relax input constraints. Split
6437 symbolic constants.
6438 (movdf_media, movsf_media): New insn. New split to movdi.
6439 (movdf, movsf): Match on SHmedia.
6440 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6441 bgeu_media): New insns and splits. New insns with `_i' suffix.
6442 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6443 (bunordered): New expand.
6444 (jump_compact): Renamed from `jump'.
6445 (jump_media): New insn.
6446 (jump): New expand.
6447 (call_media, call_value_media): New insns.
6448 (call, call_value): Adjust.
6449 (indirect_jump_compact): Renamed from `indirect_jump'.
6450 (indirect_jump_media): New insn.
6451 (indirect_jump): New expand.
6452 (untyped_call, return): Accept SHmedia.
6453 (return_media): New insn.
6454 (prologue, epilogue, blockage): Accept SHmedia.
6455 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6456 (sunordered): New expand.
6457 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6458 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6459 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6460 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6461 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6462 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6463 abssf2_media): New insns.
6464 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6465 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6466 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6467 floatdidf2, floatsidf2_media, fix_truncdfdi2,
6468 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
6469 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
6470 absdf2_media): New insns.
6471 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
6472 (extendsfdf2_media, truncdfsf2_media): New insns.
6473 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
6474 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
6475 * config/sh/sh.h (CONST_OK_FOR_J): Document.
6476 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
6477 * config/sh/sh.md (adddi3): New expand.
6478 (adddi3_media, adddi3z_media): New insns.
6479 (adddi3_compact): Renamed from adddi3.
6480 (addsi3_media): Use add.l r63 to add constant zero.
6481 (subdi3): New expand.
6482 (subdi3_media): New insn.
6483 (subdi3_compact): Renamed from subdi3.
6484 (mulsidi3): New expand.
6485 (mulsidi3_media): New insn.
6486 (mulsidi3_compact): Renamed from mulsidi3.
6487 (umulsidi3): New expand.
6488 (umulsidi3_media): New insn.
6489 (umulsidi3_compact): Renamed from umulsidi3.
6490 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
6491 (ashlsi3, ashrsi3, lshrsi3): Use them.
6492 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
6493 (ashldi3, ashrdi3, lshrdi3): Use them.
6494 (zero_extendsidi2): New expand.
6495 (extendsidi2): New insn.
6496 (movsi_media): New insn. Split to movdi to load constants.
6497 (movsi): Enable for shmedia.
6498 (movdi_media): New insn. Use shori_media to load wide constants.
6499 (short_media): New insn.
6500 (movdi): Enable for shmedia.
6501 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
6502 * config/sh/sh.h (CPP_SPEC): Added `m5'.
6503 (SUBTARGET_CPP_SPEC): Added `!m5'.
6504 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
6505 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
6506 to all other SH variants.
6507 (TARGET_DEFAULT): Set to SH1_BIT.
6508 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
6509 (BITS_PER_WORD): Raise to 64 on shmedia.
6510 (MAX_BITS_PER_WORD): Change to 64.
6511 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
6512 (INT_TYPE_SIZE): Keep as 32.
6513 (UNITS_PER_WORD): Raise to 8 on shmedia.
6514 (MIN_UNITS_PER_WORD): Keep as 4.
6515 (POINTER_SIZE): Raise to 64 on shmedia.
6516 (CONST_OK_FOR_J): New macro.
6517 (CONST_OK_FOR_LETTER_P): Use it.
6518 (processor_type): Add PROCESSOR_SH5.
6519 * config/sh/sh.md: Conditionalize all expands, insns and
6520 splits to TARGET_SH1.
6521 (cpu): Added sh5.
6522 (addsi3_compact): Renamed from...
6523 (addsi3): Now an expand.
6524 (addsi3_media, subsi3_media): New insns.
6525 (subsi3): Don't negate constants with SHmedia.
6526
e4ec2cac
AO
6527 * hooks.c: New file.
6528 * hooks.h: New file.
6529 * Makefile.in (HOOKS_H): New.
6530 (TARGET_DEF_H): Added $(HOOKS_H).
6531 (OBJS): Added hooks.o.
6532 (cfgcleanup.o, bb-reorder.o): Added target.h.
6533 (hooks.o): Added dependencies.
6534 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
6535 (TARGET_INITIALIZER): this.
6536 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
6537 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
6538 * bb-reorder.c: Include target.h.
6539 (reorder_basic_blocks): Skip if cannot modify jumps.
6540 * cfgcleanup.c: Include target.h.
6541 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
6542
246a46e0
CD
65432002-02-08 Chris Demetriou <cgd@broadcom.com>
6544
831c4e87
KC
6545 * config/mips/mips.md (casesi_internal, casesi_internal_di):
6546 Protect jump delay slot instructions with .set noreorder and
6547 .set nomacro.
246a46e0
CD
6548
65492002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
6550
6551 * config/mips/mips.md (casesi_internal_di): Calculate
6552 the index into the target offset table correctly.
6553
fdf473ae
RH
65542002-02-08 Richard Henderson <rth@redhat.com>
6555
6556 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
6557 * final.c (output_addr_const): Accept and discard SUBREG.
6558 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
6559 mark them unknown instead.
6560 (simplify_subtraction): Handle RTX_UNKNOWN.
6561 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
6562
c50503ac
DE
65632002-02-08 David Edelsohn <edelsohn@gnu.org>
6564
6565 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
6566
3660d217
RH
65672002-02-08 Richard Henderson <rth@redhat.com>
6568
6569 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
6570
56547299
AJ
65712002-02-08 Andreas Jaeger <aj@suse.de>
6572
6573 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
6574 * config/i386/t-linux64: New file.
6575
1cf537c5
JJ
65762002-02-08 Jakub Jelinek <jakub@redhat.com>
6577
6578 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
6579 * c-parse.in (compstmt): Clear last_expr_type.
6580
5c7f5a5f
RH
65812002-02-07 Richard Henderson <rth@redhat.com>
6582
6583 * loop.c (strength_reduce): Sink final_value when not
6584 eliminating a biv.
6585
b1138bf3
DB
65862002-02-07 David O'Brien <obrien@FreeBSD.org>
6587
6588 * config/sparc/freebsd.h: Fix mismatched spec {.
6589
b6878a45
RH
65902002-02-07 Richard Henderson <rth@redhat.com>
6591
6592 * cfgrtl.c: Include recog.h and insn-config.h.
6593 (keep_with_call_p): Fix general_operand invocation.
6594 * Makefile.in (cfgrtl.o): Update dependencies.
6595
ae19f5ef
KH
65962002-02-07 Kazu Hirata <kazu@hxi.com>
6597
6598 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
6599 comment. Accept HImode only if TARGET_H8300.
6600
b137f9fc
EC
66012002-02-07 Eric Christopher <echristo@redhat.com>
6602
6603 * config/mips/crtn.asm: Cleanup #ifdefs.
6604
66052002-02-07 Eric Christopher <echristo@redhat.com>
6606
6607 * config/mips/crti.asm: Add changes for mips16. mips16 uses
6608 register 7 as RA instead of $31.
6609 * config/mips/crtn.asm: Ditto.
6610 * config/mips/mips.c (mips_move_2words): Add case for
6611 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
6612 (compute_frame_size): Fix typo.
6613 (save_restore_insns): Ditto. Make documentation about using
6614 register $7 as return register more precise.
6615 (mips_expand_epilogue): Fix comment. Add code to work around not
6616 being able to add to the stack pointer directly.
6617 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
6618 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
6619 epilogue.
6620
768070a0
TR
66212002-02-07 Tom Rix <trix@redhat.com>
6622
b137f9fc 6623 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
6624 immediates in ldu and stdu DS opcode field.
6625 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
6626 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
6627 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
6628
225909c3
JS
66292002-02-07 Jeff Sturm <jsturm@one-point.com>
6630
6631 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
6632 offset for stack bias.
6633
15fae023
L
66342002-02-07 H.J. Lu <hjl@gnu.org>
6635
6636 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
6637
fde5badd
UW
66382002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
6639
6640 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
6641
162f023b
JH
6642Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
6643
6644 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
6645 * i386.c (x86_order_regs_for_local_alloc): New global function.
6646 * i386.h (REG_ALLOC_ORDER): CLeanup.
6647 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
6648
9b462c42
RH
66492002-02-07 Richard Henderson <rth@redhat.com>
6650
85aa876c 6651 PR optimization/2463
9b462c42
RH
6652 * alias.c (find_base_value): Recall base values for fixed hard regs.
6653 * loop.c (loop_regs_update): Don't use single_set on non-insns.
6654
06e455a9
AO
66552002-02-07 Alexandre Oliva <aoliva@redhat.com>
6656
6657 * config/mips/mips.md (define_delay) [mips16]: Adjust required
6658 length.
6659
edd1967d
RH
66602002-02-06 Richard Henderson <rth@redhat.com>
6661
6662 PR c/5609
6663 * stmt.c (resolve_operand_name_1): Take more care with mixed
6664 named and unnamed operands.
6665
a2cd028f
JJ
66662002-02-06 Janis Johnson <janis187@us.ibm.com>
6667 Jan Hubicka <jh@suse.cz>
6668
6669 * loop.c (remove_constant_addition): Avoid clobbering a shared
6670 CONST expression.
6671
e8487c04
UW
66722002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6673
6674 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
6675 * config/s390/t-linux64: New file.
6676 * config/s390/libgcc-glibc.ver: New file.
6677
58d10f89
UW
66782002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6679
6680 * config/s390/linux64.h: Delete file.
6681 * config/s390/s390x.h: New file.
6682 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
6683 as target header file.
6684 * config/s390/linux.h (TARGET_VERSION): Define depending on
6685 DEFAULT_TARGET_64BIT.
6686 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
6687 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
6688 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
6689 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
6690 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
6691 (EXTRA_SPEC): New define.
6692 * config/s390/s390.h (TARGET_VERSION): Define depending on
6693 DEFAULT_TARGET_64BIT.
6694 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
6695
5ce89b2e
JM
66962002-02-06 Jason Merrill <jason@redhat.com>
6697
6698 * c-decl.c (finish_function): Warn about a non-void function with
6699 no return statement and no abnormal exit.
6700 (current_function_returns_abnormally): New variable.
6701 (start_function): Clear it.
6702 (struct c_language_function): Add returns_abnormally.
6703 (push_c_function_context): Save it.
6704 (pop_c_function_context): Restore it.
6705 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
6706 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
6707 an explicit return type.
6708 * c-tree.h: Declare current_function_returns_abnormally.
6709 (C_FUNCTION_IMPLICIT_INT): New macro.
6710 * c-typeck.c (build_function_call): Set it.
6711 (c_expand_return): Set current_function_returns_value even if the
6712 value is erroneous.
6713
caaf2272
JJ
67142002-02-06 Jakub Jelinek <jakub@redhat.com>
6715
6716 PR c/5420:
6717 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
6718 unsafe for reevaluation.
6719
d5129288
JJ
67202002-02-06 Jakub Jelinek <jakub@redhat.com>
6721
6722 PR c/5482:
6723 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
6724 EXPR_STMT, but COMPOUND_STMT, recurse into it.
6725
7fb75099
RH
67262002-02-06 Richard Henderson <rth@redhat.com>
6727
6728 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
6729 be a general_operand. Dest for function value must be a pseudo.
6730
d3a8b6a6
NC
67312002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6732
6733 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
6734 as SYMBOL_REFs from the constant pool.
6735
3c1299c5
AO
67362002-02-06 Alexandre Oliva <aoliva@redhat.com>
6737
6738 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
6739 passed by invisible reference.
6740
c2c9f6c9
RH
67412002-02-05 Richard Henderson <rth@redhat.com>
6742
6743 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
6744
a824924d
HPN
67452002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
6746
6747 Implement using "base addresses" in insn operands as default.
6748 * config/mmix/mmix.c (mmix_conditional_register_usage): if
6749 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
6750 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
6751 used to read the rtx value.
6752 (mmix_target_asm_function_epilogue): Fix spacing.
6753 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
6754 (mmix_legitimate_address): Ditto.
6755 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
6756 should be loaded with a GETA insn. Don't allocate needless extra
6757 char for nul termination and fix misleading comment.
6758 (mmix_print_operand_address): Handle constants if
6759 TARGET_BASE_ADDRESSES.
6760 (mmix_output_register_setting): Use base addressing if
6761 TARGET_BASE_ADDRESSES and the number of insns is 3.
6762 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
6763 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
6764 to use R as constraint, add LDA to match s.
6765 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
6766 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
6767 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
6768 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
6769 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
6770 order with other fixed registers.
6771 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
6772 other parameter/call-clobbered registers.
6773 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
6774 -mbase-addresses, -mno-base-addresses.
6775 (MMIX Options): Ditto.
6776
73c342b9
JDA
67772002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6778
6779 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
6780
ef238c58
AH
67812002-02-06 Aldy Hernandez <aldyh@redhat.com>
6782
831c4e87 6783 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 6784
ad08e60e
JT
67852002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6786
6787 * config/netbsd.h (WCHAR_TYPE): Define.
6788 (WCHAR_TYPE_SIZE): Ditto.
6789 (WINT_TYPE): Ditto.
6790 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
6791 (WCHAR_UNSIGNED): Ditto.
6792 (WCHAR_TYPE_SIZE): Ditto.
6793 (WINT_TYPE): Ditto.
6794 * config/arm/netbsd.h: Likewise.
6795 * config/i386/netbsd-elf.h: Likewise.
6796 * config/i386/netbsd.h: Likewise.
6797 * config/m68k/netbsd-elf.h: Likewise.
6798 * config/m68k/netbsd.h: Likewise.
6799 * config/ns32k/netbsd.h: Likewise.
6800 * config/sparc/netbsd.h: Likewise.
6801 * config/vax/netbsd.: Likewise.
6802
f913c102
AO
68032002-02-05 Alexandre Oliva <aoliva@redhat.com>
6804
6805 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
6806 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
6807 (TARGET_INITIALIZER): this.
6808 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
6809 (BITFIELD_NBYTES_LIMITED): Markup fix.
6810 * tree.h (default_ms_bitfield_layout_p): Declare.
6811 (record_layout_info): Added prev_field.
6812 * tree.c (default_ms_bitfield_layout_p): New fn.
6813 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
6814 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
6815 * stor-layout.c: Include target.h.
6816 (start_record_layout): Initialize prev_field.
6817 (place_field): Handle MS bit-field layout, and disregard
6818 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
6819 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
6820 * Makefile.in (stor-layout.o): Adjust dependencies.
6821
c13db5d1
JM
68222002-02-05 Jason Merrill <jason@redhat.com>
6823
c13db5d1
JM
6824 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
6825
4505024e
AJ
68262002-02-05 Andreas Jaeger <aj@suse.de>
6827
6828 * crtstuff.c: Fix comments.
6829
794ad79d
RH
68302002-02-05 Richard Henderson <rth@redhat.com>
6831
2e279a9b
RH
6832 PR fortran/3393
6833 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
6834 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
6835
794ad79d
RH
6836 PR fortran/3392
6837 * config/mips/mips.c (function_arg): Handle TImode.
6838 (function_arg_advance): Likewise.
6839
8f909017
AH
68402002-02-05 Aldy Hernandez <aldyh@redhat.com>
6841
c13db5d1
JM
6842 * config/rs6000/altivec.h (vec_step_help): Rename to
6843 __vec_step_help.
8f909017 6844
66daa9e3
AH
68452002-02-05 Aldy Hernandez <aldyh@redhat.com>
6846
c13db5d1 6847 * config/rs6000/altivec.h: Fix typos.
66daa9e3 6848
2696e97b
JT
68492002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6850
6851 * config/arm/netbsd.h: Correct a comment.
6852
3deb2758
AH
68532002-02-05 Aldy Hernandez <aldyh@redhat.com>
6854
c13db5d1
JM
6855 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
6856 building void typed builtins.
3deb2758 6857
c13db5d1
JM
6858 * config/rs6000/altivec.h (vec_ld*): Fix typos.
6859 (vec_step): Implement for C++.
3deb2758 6860
c13db5d1 6861Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
6862
6863 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
6864
ebbb0a63
RH
68652002-02-04 Richard Henderson <rth@redhat.com>
6866
6867 * combine.c (nonzero_bits): Re-introduce special case for
6868 sp/fp/ap wrt REGNO_POINTER_ALIGN.
6869
ae4b4a02
AH
68702002-02-05 Aldy Hernandez <aldyh@redhat.com>
6871
c13db5d1
JM
6872 * doc/extend.texi: Warn about unsupported usage of altivec
6873 builtins.
ae4b4a02 6874
c13db5d1
JM
6875 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
6876 (altivec_predicate_*): New.
ae4b4a02 6877
c13db5d1
JM
6878 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
6879 Add C++ version of vec_*() functions.
ae4b4a02 6880
c13db5d1
JM
6881 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
6882 (bdesc_2arg): Remove altivec predicates.
6883 (altivec_expand_builtin): Handle predicates.
6884 (altivec_init_builtins): Handle predicates.
6885 (altivec_expand_predicate_builtin): New.
ae4b4a02 6886
f6bcf44c
JDA
68872002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6888
6889 * pa.c (DO_FRAME_NOTES): Move forward.
6890 (store_reg): Revise handling of frame notes.
6891 (load_reg): Likewise.
6892 (set_reg_plus_d): Likewise.
6893 (hppa_expand_prologue): Likewise.
6894 (hppa_expand_epilogue): Likewise.
b137f9fc 6895
703b0080
JDA
68962002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6897
6898 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
6899
6f9fdf4d
JJ
69002002-02-04 Jakub Jelinek <jakub@redhat.com>
6901
6902 PR c/4475, c++/3780:
6903 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
6904 * c-common.h (SWITCH_TYPE): Define.
6905 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
6906 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
6907 Rename spareness variable to sparseness.
6908 (expand_end_case_type): Renamed from expand_end_case, use orig_type
6909 if non-NULL instead of TREE_TYPE (orig_index).
6910 * tree.h (expand_end_case_type): Renamed from expand_end_case.
6911 (expand_end_case): Define using expand_end_case_type.
6912 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
6913 to expand_end_case_type.
6914 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
6915
79109502
JDA
69162002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6917
6918 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
6919 (BIGGEST_ALIGNMENT): Change to 128.
6920
e62a5987
JDA
69212002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6922
6923 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
6924
219f24a4
JDA
69252002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6926
6927 * pa.md (call_internal_reg_64bit): Remove unused variable.
6928
3cb66fd7
NC
69292002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
6930
6931 * config/arm/arm.h (machine_function): Add uses_anonymous_args
6932 field.
831c4e87 6933 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 6934 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
6935 replace uses with cfun->machine->uses_anonymous_args.
6936 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
6937
6938 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
6939 any geenral register.
b137f9fc 6940
5d5603e2 69412001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
6942
6943 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
6944 the entry block.
6945
563c12b0
RH
69462002-02-04 Richard Henderson <rth@redhat.com>
6947
6948 * combine.c (force_to_mode): Remove STACK_BIAS code.
6949 (nonzero_bits): Likewise. Replace sp/fp special case with
6950 REGNO_POINTER_ALIGN.
6951
6952 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
6953 (HARD_FRAME_POINTER_REGNUM): New.
6954 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
6955 (FIXED_REGS, CALL_USED_REGS): Update.
6956 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
6957 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
6958 (HARD_REGNO_NREGS): Update for SFP.
6959 (STACK_POINTER_OFFSET): Include bias here ...
6960 (FIRST_PARM_OFFSET): ... not here.
6961 (STACK_BIAS): Remove.
6962 (INIT_EXPANDERS): New.
6963 (STARTING_FRAME_OFFSET): Do not include bias.
6964 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
6965 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
6966 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
6967 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
6968 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
6969 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
6970 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
6971 (MUST_SAVE_REGISTER): Likewise.
6972 (sparc_flat_function_prologue): Likewise.
6973 (sparc_flat_function_epilogue): Likewise.
6974 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
6975 (sparc_init_modes): SFP is GENERAL_REGS.
6976 (sparc_builtin_saveregs): SFP does not have bias applied.
6977
14691f8d
RH
69782002-02-04 Richard Henderson <rth@redhat.com>
6979
6980 * config/alpha/alpha.c (current_function_is_thunk): Don't check
6981 current_function_is_thunk.
6982 (alpha_sa_mask): Distinguish between current_function_is_thunk
6983 called from ASM_OUTPUT_MI_THUNK and not.
6984 (alpha_does_function_need_gp): Thunks always need gp.
6985 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6986 (alpha_output_mi_thunk_osf): New.
6987 * config/alpha/alpha-protos.h: Update.
6988 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
6989
af702de8
RS
69902002-02-04 Richard Sandiford <rsandifo@redhat.com>
6991
6992 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
6993 function types, not when they're taken away.
6994
5b1cacd8
JL
6995Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
6996
6997 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
6998 CODE_LABEL and jump table when replacing a table jump with a
6999 simple jump.
7000
f3e9edff
UW
70012002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7002
7003 * config/s390/s390-protos.h (legitimize_la_operand,
7004 s390_secondary_input_reload_class, s390_plus_operand,
7005 s390_expand_plus_operand): Add prototypes.
7006
7007 config/s390/s390.c (s390_secondary_input_reload_class,
7008 s390_plus_operand, s390_expand_plus_operand): New functions.
7009
7010 (struct s390_address): New member 'pointer'.
7011 (s390_decompose_address): Compute it.
7012 (legitimate_la_operand_p): Use it.
7013 (legitimize_la_operand): New function.
7014 (movti, movdi, movdf splitters): Call it.
7015
7016 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7017 (PREDICATE_CODES): Add s390_plus_operand.
7018
7019 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7020 (la_ccclobber): Allow GENERAL_REGS as output operand.
7021
7022 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7023 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7024 (*la_64, *la_31, reload_indi, reload_insi): ... these.
7025
3c9a08ec
UW
70262002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7027
7028 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7029 register names for regular asm () construct.
7030
ac300a45
JJ
70312002-02-04 Jakub Jelinek <jakub@redhat.com>
7032
7033 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7034 registers.
7035
fa852403
JJ
70362002-02-04 Jakub Jelinek <jakub@redhat.com>
7037
7038 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7039 pat for recog.
7040
fecaac37
HP
70412002-02-04 Hartmut Penner <hpenner@de.ibm.com>
7042
831c4e87
KC
7043 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7044 constant pool to be identical by string address and index.
fecaac37 7045
10c45943
AG
70462002-02-04 Anthony Green <green@redhat.com>
7047
7048 * output.h (SECTION_OVERRIDE): Define.
7049 * varasm.c (named_section): Obey SECTION_OVERRIDE.
7050
69474c3c
JT
70512002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7052
7053 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7054 by existing arm*-*-netbsd* (a.out) target.
7055 (ns32k-*-netbsdelf*): Likewise.
7056 (sparc-*-netbsdelf*): Likewise.
7057 (vax-*-netbsdelf*): Likewise.
7058
939a46f6 70592002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
7060
7061 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7062 headers and libobjc headers.
7063
70642002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
7065
7066 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7067 (_mingw.h): Remove duplicate include.
7068
2fd95d71
JT
70692002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7070
7071 * config.gcc: Set cpu_type to m68k for 68010, as well.
7072 (m68010-*-netbsdelf*): New...
7073 (m68k*-*-netbsdelf*): ...targets.
7074 * config/m68k/netbsd-elf.h: New file.
7075
0ea6f6a0
KH
70762002-02-02 Kazu Hirata <kazu@hxi.com>
7077
7078 * config/h8300/h8300.c (hand_list): Move inside function_arg.
7079
cbf1b2da
KH
70802002-02-02 Kazu Hirata <kazu@hxi.com>
7081
7082 * config/h8300/h8300.c (h8_push_ops): Move inside
7083 h8300_init_once.
7084 (h8_pop_ops): Likewise.
7085 (h8_move_ops): Likewise.
7086
0869f126
KH
70872002-02-02 Kazu Hirata <kazu@hxi.com>
7088
7089 * config/h8300/h8300.c (os_task): Make it static.
7090 (monitor): Likewise.
7091 (pragma_saveall): Likewise.
7092
90e65b70
AO
70932002-02-02 Alexandre Oliva <aoliva@redhat.com>
7094
7095 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7096 constant is a valid sign-extension for Pmode.
7097
9cbcd983
KH
70982002-02-02 Kazu Hirata <kazu@hxi.com>
7099
7100 * config/h8300/h8300.c: Fix formatting.
7101
7a27efc4
KH
71022002-02-02 Kazu Hirata <kazu@hxi.com>
7103
7104 * config/h8300/h8300.md: Fix formatting.
7105
54175a44
KH
71062002-02-02 Kazu Hirata <kazu@hxi.com>
7107
7108 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7109 predicates of operands[1]. Split the patterns for each
7110 processor variant.
7111
eceb1755
KH
71122002-02-02 Kazu Hirata <kazu@hxi.com>
7113
7114 * config/h8300/h8300.md (xor patterns): Tighten the predicates
7115 of operands[1] to register_operand.
7116
0fef3fd0
NB
71172002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7118
7119 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7120 * cpphash.c (_cpp_init_hashtable): Similarly.
7121 * cppinit.c (cpp_create_reader): Default the signed_char flag.
7122 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7123 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7124 (cpp_handle_option): Handle the new options.
7125 * cpplex.c (cpp_interpret_charconst): Use new flag.
7126 * cpplib.h (struct cpp_options): New member signed_char.
7127 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7128 (cpp_options): Handle -fsigned-char and -funsigned-char.
7129 (static_specs): Remove signed_char_spec.
7130 (do_spec1): Don't handle %c.
7131 * system.h: Poison SIGNED_CHAR_SPEC.
7132 * tradcif.y (yylex): Use flag_signed_char.
7133 * tradcpp.h (flag_signed_char): New.
7134 * tradcpp.c (flag_signed_char): New.
7135 (main): Handle new command-line options.
7136 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7137config:
7138 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7139 * avr/avr.h: Remove old comments.
7140 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7141 (CC1_SPEC): Pass -fsigned-char if -mic*.
7142 (SIGNED_CHAR_SPEC): Remove.
7143doc:
7144 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7145
0617ed52
EC
71462002-02-01 Eric Christopher <echristo@redhat.com>
7147
7148 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7149 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7150 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7151 (ASM_OUTPUT_REG_POP): Ditto.
7152
dfd48d76
NB
71532002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7154
7155 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7156 patch.
7157
4a23409e
JJ
71582002-02-02 Jakub Jelinek <jakub@redhat.com>
7159
7160 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7161
d3c52658
JJ
71622002-02-02 Jakub Jelinek <jakub@redhat.com>
7163
7164 PR c/5304:
7165 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7166 unconditionally.
7167
02c5a3bd
JJ
71682002-02-01 Janis Johnson <janis187@us.ibm.com>
7169
7170 * cfganal.c: Include tm_p.h.
7171 (keep_with_call_p): Fix the test that determines if a register holds
7172 the return value of a call.
7173
3968de80
DD
71742002-02-01 DJ Delorie <dj@redhat.com>
7175
7176 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7177 we are given conflicting registers, switch to the other one we
7178 had allocated for us.
7179 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7180 as TImode so we know when the "other" register is available.
7181
1338ea6c
DB
71822002-02-01 David O'Brien <obrien@FreeBSD.org>
7183
7184 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7185 sparc/sparc_bi.h.
7186
f015be23
JJ
71872002-02-01 Janis Johnson <janis187@us.ibm.com>
7188
7189 * cfganal.c (keep_with_call_p): New function.
7190 (flow_call_edges_add): Prevent splitting a block between a call and
7191 a single-set instruction that should be kept in the same block.
7192
63708ffc
CR
71932002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
7194
7195 * doc/install.texi (avr): Update outdated URL.
7196
5ee4950e
AH
71972002-01-30 Andrew Haley <aph@cambridge.redhat.com>
7198
831c4e87
KC
7199 * config/stormy16/stormy16.md (pushqi): New.
7200 (popqi): New.
7201 (pushhi): New.
7202 (pophi): New.
7203 (movhi): Remove stack operands.
7204 (movqi): Likewise.
7205 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7206 nonimmediate_nonstack_operand.
7207 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7208 New.
7209 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7210 New.
5ee4950e 7211
b88c0704
JM
72122002-01-31 Jason Merrill <jason@redhat.com>
7213
7214 * Makefile.in (c-parse.c): Handle .output file.
7215 * objc/Make-lang.in (objc-parse.c): Likewise.
7216
ac282977
AO
72172002-02-01 Alexandre Oliva <aoliva@redhat.com>
7218
7219 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7220 the -me[lb] option is given. Don't output the default flag
7221 twice.
7222
bebc7e8b
ZW
72232002-01-31 Zack Weinberg <zack@codesourcery.com>
7224
7225 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7226 the primary source file; this has not been done yet.
7227 * c-decl.c (c_expand_body): Reset input_filename from
7228 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7229
5809eb5f
KH
72302002-01-31 Kazu Hirata <kazu@hxi.com>
7231
7232 * rtlanal.c (subreg_regno_offset): Do not use
7233 SUBREG_REGNO_OFFSET.
7234 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7235 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7236
8512bbd7
JM
72372002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7238
7239 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
7240 version rather than GNATS version in --version output.
7241
74cb3cc8
RS
72422002-01-31 Richard Sandiford <rsandifo@redhat.com>
7243
7244 * ifcvt.c (noce_process_if_block): Make a copy of the destination
7245 when copying back from a temporary.
7246
874b5b14
RH
72472002-01-30 Richard Henderson <rth@redhat.com>
7248
7249 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7250 and new_dest are the same.
7251
e803a64b
RH
72522002-01-30 Richard Henderson <rth@redhat.com>
7253
89cf7be5 7254 PR opt/5076
e803a64b
RH
7255 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7256 * rtl.c (note_insn_name): Update.
7257 * emit-rtl.c (remove_unnecessary_notes): Kill it.
7258 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
7259 to perform loop rotation.
7260 (expand_exit_loop_top_cond): New.
7261 * tree.h (expand_exit_loop_top_cond): Declare it.
7262 * c-semantics.c (genrtl_while_stmt): Use it.
7263 (genrtl_for_stmt): Likewise.
7264
0b51254d
AO
72652002-01-30 Alexandre Oliva <aoliva@redhat.com>
7266
7267 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7268 arguments to 64-bit boundaries on 64-bit ABIs.
7269
71cef493
SE
72702002-01-30 Steve Ellcey <sje@cup.hp.com>
7271
7272 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7273
6169e5fd
JM
72742002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7275
7276 * c-decl.c (grokdeclarator): Handle type being a typedef for an
7277 invalid type.
7278
86f808dc
DB
72792002-01-30 David O'Brien <obrien@FreeBSD.org>
7280
7281 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7282 * config/sparc/sparc_bi.h: Remove file.
7283 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7284
5748ebeb
RH
72852002-01-30 Richard Henderson <rth@redhat.com>
7286
7287 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7288
20d32cc2
ZW
72892002-01-30 Zack Weinberg <zack@codesourcery.com>
7290
7291 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7292
b88c0704 72932002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
7294
7295 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7296 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7297 (reg_save): Use DW_CFA_offset_extended_sf instead.
7298
7299 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7300
37060e78
JJ
73012002-01-29 Jakub Jelinek <jakub@redhat.com>
7302
7303 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7304 in cselib_lookup.
7305
d18dba68
AH
73062002-01-29 Aldy Hernandez <aldyh@redhat.com>
7307
bebc7e8b
ZW
7308 * rs6000.md ("*call_value_local32"): Remove constraints.
7309 ("*call_value_local64"): Same.
7310 ("*call_value_indirect_nonlocal_aix32"): Same.
7311 ("*call_value_nonlocal_aix32"): Same.
7312 ("*call_value_indirect_nonlocal_aix64"): Same.
7313 ("*call_value_nonlocal_aix64"): Same.
7314 ("*call_value_nonlocal_sysv"): Same.
d18dba68 7315
80a8aac6
RH
73162002-01-29 Richard Henderson <rth@redhat.com>
7317
7318 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7319
12beba6f
RH
73202002-01-29 Richard Henderson <rth@redhat.com>
7321
7322 * expr.c (force_operand): Ignore flag_pic for detecting pic
7323 address loads.
7324 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7325 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7326 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7327 instead of open-coded loop.
7328 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7329 be fixed when in use.
7330
2583081e
RH
73312002-01-29 Richard Henderson <rth@redhat.com>
7332
7333 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7334 * sched-rgn.c (propagate_deps): Update them.
7335 * sched-deps.c (sched_analyze_insn): Update them. Flush the
7336 clobbers list when either gets too long.
7337
3b8d200e
JJ
73382002-01-29 Jakub Jelinek <jakub@redhat.com>
7339
7340 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7341 and INDEX_REGS the same as GENERAL_REGS.
7342 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7343
2d3115eb
NB
73442002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7345
bebc7e8b 7346 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 7347
ecbe845e
UW
73482002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
7349
bebc7e8b 7350 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 7351 movstrsix_31): Remove, replace by ...
bebc7e8b 7352 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
7353 movstrsi_long): ... these. New.
7354 (movstrdi, movstrsi): Adapt.
7355
7356 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 7357 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
7358 Remove unnecessary CC clobber.
7359 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7360 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7361
7362 (divmoddi4): Don't partially initialize TImode register.
7363
0b32fca5
GK
73642002-01-29 Geoffrey Keating <geoffk@redhat.com>
7365
7366 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7367
08ef5437
RH
73682002-01-29 Richard Henderson <rth@redhat.com>
7369
7370 * flow.c (print_rtl_and_abort): Remove.
7371 (print_rtl_and_abort_fcn): Remove.
7372 (verify_local_live_at_start): Use dump_bb instead.
7373 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7374 (verify_wide_reg_1): Return 2 on mode test failure.
7375
8469e54e
NB
73762002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7377
7378 PR c/3325, c/3326, c/2511, c/3347
7379 * c-decl.c (enum_decl_context): Remove BITFIELD.
7380 (grokdeclarator): Take bitfield width as an input.
7381 Ensure bitfields are given the correct type. Perform
7382 bitfield width validation with build_bitfield_integer_type
7383 rather than waiting for finish_struct.
7384 (grok_typename, grok_typename_in_parm_context, start_decl,
7385 push_parmdecl, grokfield, start_function): Update calls to
7386 grokdeclarator.
7387 (build_bitfield_integer_type): New function.
7388 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 7389 and build_bitfield_integer_type.
8469e54e
NB
7390 * tree.c (build_nonstandard_integer_type): New function.
7391 * tree.h (build_nonstandard_integer_type): New prototype.
7392objc:
7393 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7394
ffdeea47
JJ
73952002-01-29 Jakub Jelinek <jakub@redhat.com>
7396
7397 PR other/1502:
7398 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7399 don't ignore unrecognized -W* options.
7400 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7401 * cpplib.h (cpp_handle_option): Adjust prototype.
7402 * c-decl.c (c_decode_options): Pass 0 as last argument to
7403 cpp_handle_option.
7404
7405 PR c/2896:
7406 * gcc.c (cpp_unique_options): Split from cpp_options.
7407 (cpp_options): Source cpp_unique_options.
7408 (default_compilers): Use cpp_unique_options instead of cpp_options
7409 when used together with cc1_options.
7410 (static_specs): Add cpp_unique_options.
7411 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7412 when used together with cc1_options.
7413
1a275226
KH
74142002-01-29 Kazu Hirata <kazu@hxi.com>
7415
7416 * config/h8300/h8300-protos.h: Update the prototype of
7417 output_a_shift.
7418 * config/h8300/h8300.c (output_a_shift): Remove an unused
7419 argument 'insn'. Remove redundant code.
7420 * config/h8300/h8300.md: Adust to the new prototype of
7421 output_a_shift.
7422
a11d9dfc
KH
74232002-01-29 Kazu Hirata <kazu@hxi.com>
7424
7425 * config/h8300/h8300-protos.h: Update the prototypes of
7426 emit_a_rotate and expand_a_rotate.
7427 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7428 first argument to 'enum rtx_code'.
7429 (expand_a_rotate): Likewise.
7430
871f73e3
KH
74312002-01-28 Kazu Hirata <kazu@hxi.com>
7432
7433 * config/h8300/h8300-protos.h: Update the prototype of
7434 output_simode_bld.
7435 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7436 'log2'.
7437 * config/h8300/h8300.md: Adjust to the new prototype.
7438
5fc4b751
KH
74392002-01-28 Kazu Hirata <kazu@hxi.com>
7440
7441 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7442 redundant code.
7443
2d67bd7b
JDA
74442002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7445
7446 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7447 is a fixed register before returning pic_offset_table_rtx.
7448 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7449 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7450
5a852b3e
JM
74512002-01-28 Jason Merrill <jason@redhat.com>
7452
6bb28965 7453 * dwarf2.h: Sync with src version.
5a852b3e 7454
3bca17dd
PK
74552002-01-28 Paul Koning <pkoning@equallogic.com>
7456
7457 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7458 BT_FN_VOID_PTR_VAR.
7459 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7460 * doc/extend.texi (__builtin_prefetch): Update documentation:
7461 first argument is now const void ptr.
7462
7dc3f8c0
KH
74632002-01-28 Kazu Hirata <kazu@hxi.com>
7464
7465 * config/h8300/h8300-protos.h: Remove an unused prototype.
7466
e83cb5f0
RZ
74672002-01-28 Roman Zippel <zippel@linux-m68k.org>
7468
7469 * toplev.c (lang_independent_init): Round up identifier size.
7470
5721cd84
RE
74712002-01-28 Richard Earnshaw <rearnsha@arm.com>
7472
7473 * config.gcc: Revert previous change.
7474
d534119e
AP
74752002-01-28 Andris Pavenis <pavenis@latnet.lv>
7476
7477 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
7478
5a721dab
RE
74792002-01-28 Richard Earnshaw <rearnsha@arm.com>
7480
7481 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
7482 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
7483 other non-elf netbsd config frags.
7484 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
7485 collect2 will does that.
7486 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
7487 shared-lib frobbing will work.
7488
da1775d6
KH
74892002-01-28 Kazu Hirata <kazu@hxi.com>
7490
7491 * config/h8300/h8300.h: Fix formatting.
7492 * config/h8300/h8300.md: Likewise.
7493
8f2e963b
LR
74942002-01-28 Loren J. Rittle <ljrittle@acm.org>
7495
7496 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
7497 the old, removed AAA_standards fix.
7498 * fixinc/fixincl.x: Rebuilt.
7499
fdae5767
HPN
75002002-01-28 Hans-Peter Nilsson <hp@axis.com>
7501
7502 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
7503 atexit call in crtbegin, hooked in after call to frame_dummy;
7504 register EH before registering __fini__start.
7505
2a2ecb63
AH
75062002-01-28 Aldy Hernandez <aldyh@redhat.com>
7507
7508 * config/rs6000/altivec.h: Remove spurious semicolons.
7509
8ed43adf
KH
75102002-01-27 Kazu Hirata <kazu@hxi.com>
7511
7512 * config/h8300/h8300.md: Replace dead bit extraction patterns
7513 with ones that work.
7514
917afb0c
RK
7515Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7516
7517 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
7518 if not STRICT_ALIGNMENT.
7519 * rtl.h (MEM_ALIGN): Likewise.
7520
f70a54cb
CR
75212002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
7522
7523 * doc/invoke.texi (-fdump-translation-unit): Revert this
7524 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
7525
d8fd4914
KH
75262002-01-27 Kazu Hirata <kazu@hxi.com>
7527
7528 * config/h8300/h8300.md (define_constants): New.
7529 (anonymous patterns) Use defined constants appropriately.
7530
15e0e275
KH
75312002-01-27 Kazu Hirata <kazu@hxi.com>
7532
7533 * config/h8300/h8300.c (function_arg): Remove redundant code.
7534
37a0f8a5
RH
75352002-01-26 Richard Henderson <rth@redhat.com>
7536
7537 * sched-deps.c (reg_pending_uses_head): New.
7538 (reg_pending_barrier): Rename from reg_pending_sets_all.
7539 (find_insn_list): Don't mark inline.
7540 (find_insn_mem_list): Remove.
7541 (add_dependence_list, add_dependence_list_and_free): New.
7542 (flush_pending_lists): Replace only_write param with separate
7543 for_read and for_write parameters. Update all callers. Use
7544 add_dependence_list_and_free.
7545 (sched_analyze_1): Do not add reg dependencies here; just set
7546 the pending bits. Use add_dependence_list.
7547 (sched_analyze_2): Likewise.
7548 (sched_analyze_insn): Replace schedule_barrier_found with
7549 reg_pending_barrier. Add all dependencies for pending reg
7550 uses, sets, and clobbers.
7551 (sched_analyze): Don't add reg dependencies for calls, just
7552 set pending bits. Use regs_invalidated_by_call. Treat
7553 sched_before_next_call as a normal list, not a fake insn.
7554 (init_deps): No funny init for sched_before_next_call.
7555 (free_deps): Free pending mems lists. Don't zero reg_last.
7556 (init_deps_global): Init reg_pending_uses.
7557 (finish_deps_global): Free it.
7558 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
7559 (find_insn_mem_list): Remove.
7560 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
7561 (propagate_deps): Use them. Zero temp mem lists.
7562
cea3bd3e
RH
75632002-01-26 Richard Henderson <rth@redhat.com>
7564
7565 * Makefile.in (CRTSTUFF_CFLAGS): New.
7566 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
7567 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
7568 crtstuff.c instead of alpha assembly version.
7569 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
7570 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
7571 not FORCE_{INIT,FINI}_SECTION_ALIGN.
7572 (__do_global_dtors_aux): Mark used.
7573 (frame_dummy, __do_global_ctors_aux): Mark used.
7574 (fini_dummy, init_dummy): Remove.
7575
7576 * config/alpha/crtbegin.asm: Remove file.
7577 * config/alpha/crtend.asm: Remove file.
7578 * config/alpha/t-crtbe: Remove file.
7579 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
7580 (LINK_EH_SPEC): New.
7581
7582 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
7583 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
7584 calling constructors.
7585 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
7586
7587 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
7588 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
7589 CRT_END_INIT_DUMMY hack.
7590 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
7591 FORCE_{INIT,FINI}_SECTION_ALIGN.
7592
7593 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
7594 FORCE_{INIT,FINI}_SECTION_ALIGN.
7595
7596 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
7597 invocation sequence.
7598 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
7599
7600 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
7601 (FORCE_CODE_SECTION_ALIGN): New.
7602
60ffa0e5
RH
76032002-01-26 Richard Henderson <rth@redhat.com>
7604
7605 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
7606
61334ebe
RH
76072002-01-26 Richard Henderson <rth@redhat.com>
7608
7609 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
7610 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
7611
1d788fb6
KH
76122002-01-26 Kazu Hirata <kazu@hxi.com>
7613
7614 * config/h8300/h8300.md: Remove bit extraction patterns that
7615 cannot be triggered.
7616 Restrict each bit extraction pattern to a variant on which the
7617 pattern is tested.
7618
87611f88
JM
76192002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
7620
7621 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
7622
cd74ec59
KH
76232002-01-26 Kazu Hirata <kazu@hxi.com>
7624
7625 * config/h8300/h8300.md: Remove bit test patterns that cannot
7626 be triggered.
7627 Restrict each bit test pattern to a variant on which the
7628 pattern is tested.
7629
93051e0f
KG
76302002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7631
7632 * builtins.c (expand_builtin_strncat): Remove redundant check for
7633 INTEGER_CST.
7634
216c995f
DB
76352002-01-25 David O'Brien <obrien@FreeBSD.org>
7636
7637 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
7638 default setting.
7639 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
7640 existing setting.
7641
33c7f925
GK
76422002-01-25 Geoffrey Keating <geoffk@redhat.com>
7643
7644 * dbxout.c (dbxout_init): Use assemble_name rather than just
7645 stripping off the first character.
7646 (dbxout_source_file): Likewise.
7647
6cd444b4
DD
76482002-01-25 DJ Delorie <dj@redhat.com>
7649
7650 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
7651 using rtx_equal_p, not by comparing pointers.
7652
751551d5
SE
76532002-01-25 Steve Ellcey <sje@cup.hp.com>
7654
7655 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
7656 for PIC_OFFSET_TABLE_REGNUM.
7657 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
7658
e564e618
DB
76592002-01-25 David O'Brien <obrien@FreeBSD.org>
7660
7661 * config.gcc (x86_64-*-freebsd*): New target.
7662 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
7663 value.
7664 (i[34567]86-*-freebsd*): Don't include svr4.h.
7665 * config/i386/freebsd64.h: New file.
7666
ff3aaf17
DR
76672002-01-25 Douglas B Rupp <rupp@gnat.com>
7668
4857d29d
DR
7669 * config/alpha/x-vms (version): Make static.
7670
7671 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
7672 in previous checkin.
7673
ff3aaf17
DR
7674 * Makefile.in (install-headers-cp): New target.
7675 * config.gcc (alpha-dec-*vms*): Install headers with
7676 install-headers-cp
7677
48d79c43
JH
7678Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
7679
7680 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
7681 avoid it's copies.
7682
995b5904
RK
7683Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7684
7685 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
7686 of compare_tree_int.
7687 (expand_builtin_strncat): Likewise.
7688 * c-decl.c (finish_struct): Use tree_low_cst.
7689 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
7690 * tree.c (compare_tree_int): Likewise.
7691
75eefe3f
UW
76922002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
7693
7694 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
7695 adjustments even if they are implemented by more than two insns.
7696
5a133afd
JH
7697Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
7698
995b5904 7699 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
7700 * df.h (struct ref): Kill B.
7701 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
7702
7703 * basic-block.h (PROP_EQUAL_NOTES): New flag.
7704 * flow.c (propagate_one_insn): Use it.
7705 (mark_used_regs): Handle NIL.
7706
ead39bdf 77072002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
7708
7709 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
7710 to help folding.
7711
01a2ccd0
DE
77122002-01-25 David Edelsohn <edelsohn@gnu.org>
7713
7714 * rs6000.md (prefetch): Make address V4SI mode so that the address
7715 is restricted to legitimate form for instruction.
7716
fd29f6ea
BW
77172002-01-25 Bob Wilson <bob.wilson@acm.org>
7718
7719 * doc/install.texi (xtensa-*-elf): New target.
7720 (xtensa-*-linux*): New target.
7721 * doc/contrib.texi: Add myself.
7722
55492b32
NC
77232002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
7724
7725 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
7726 purpose register to hold an SImode (or smaller) value.
7727
72c7c913
JJ
77282002-01-25 Jakub Jelinek <jakub@redhat.com>
7729
7730 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
7731 registry only.
7732 * crtstuff.c: Likewise.
7733
c4df4ceb
KH
77342002-01-25 Kazu Hirata <kazu@hxi.com>
7735
7736 * config/h8300/h8300.md (negation patterns): Tighten
7737 predicates to register_operand.
7738
70e531f5
AH
77392002-01-24 Aldy Hernandez <aldyh@redhat.com>
7740
3bca17dd
PK
7741 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
7742 mode, not Pmode.
70e531f5 7743
3bca17dd 7744 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 7745
a4f76ef9
AO
77462002-01-24 Alexandre Oliva <aoliva@redhat.com>
7747
7748 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
7749 modes.
7750
9bf25b09
KH
77512002-01-24 Kazu Hirata <kazu@hxi.com>
7752
7753 * config/h8300/h8300.c (print_operand): Remove support for
7754 operand character 'A'.
7755 * config/h8300/h8300.md (three anonymous patterns): Replace
7756 operand character 'A' with either 'T' or 'S'.
7757
974af6a5
KH
77582002-01-24 Kazu Hirata <kazu@hxi.com>
7759
7760 * config/h8300/h8300.c (print_operand): Remove support for
7761 operand character 'U'.
7762
7a5bb7b8
AP
77632002-01-24 Andris Pavenis <pavenis@latnet.lv>
7764
3bca17dd 7765 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 7766
92a4639e
NC
77672002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
7768
7769 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
7770 values to be assigned to the stack pointer.
7771
467cb2da
HP
77722002-01-14 Hartmut Penner <hpenner@de.ibm.com>
7773
bebc7e8b 7774 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
7775 to const_double needs to be done right for big-endian systems.
7776
3b6cb920
JM
77772002-01-24 Jason Merrill <jason@redhat.com>
7778
b08dd119 7779 PR c++/2432
3b6cb920
JM
7780 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
7781 to can_throw_internal.
7782
f3077311
RH
77832002-01-23 Richard Henderson <rth@redhat.com>
7784
7785 * fold-const.c (fold): Change UINT_MAX test to check vs precision
7786 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
7787
e1d71275
AO
77882002-01-24 Alexandre Oliva <aoliva@redhat.com>
7789
7790 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
7791 (symGOT2reg): Use them, then set as GOT value as unchanging.
7792 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
7793 as a temporary, if possible.
7794 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
7795 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
7796
dc271dbe
KH
77972002-01-23 Kazu Hirata <kazu@hxi.com>
7798
7799 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
7800 accept to accept 0x80 as operands[2].
7801
1a9017f9
AO
78022002-01-24 Alexandre Oliva <aoliva@redhat.com>
7803
7804 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
7805
6932f033
RH
78062002-01-23 Richard Henderson <rth@redhat.com>
7807
7808 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
7809
709619d9
AH
78102002-01-23 Aldy Hernandez <aldyh@redhat.com>
7811
3bca17dd
PK
7812 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
7813 (parmlist_or_identifiers_1): Verify that only a parmlist follows
7814 an attribute.
709619d9 7815
3d709fd3
RH
78162002-01-23 Richard Henderson <rth@redhat.com>
7817
7818 * expr.c (move_by_pieces_1): Extend size before negation.
7819
88a446c0
RH
7820 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
7821 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
7822 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
7823 * config/m68k/t-m68kelf: Likewise.
7824
03984308
BW
78252002-01-23 Bob Wilson <bob.wilson@acm.org>
7826
7827 * config/xtensa/elf.h: New file.
7828 * config/xtensa/lib1funcs.asm: New file.
7829 * config/xtensa/lib2funcs.S: New file.
7830 * config/xtensa/linux.h: New file.
7831 * config/xtensa/t-xtensa: New file.
7832 * config/xtensa/xtensa-config.h: New file.
7833 * config/xtensa/xtensa-protos.h: New file.
7834 * config/xtensa/xtensa.c: New file.
7835 * config/xtensa/xtensa.h: New file.
7836 * config/xtensa/xtensa.md: New file.
7837 * config.gcc (xtensa-*-elf*): New target.
7838 (xtensa-*-linux*): New target.
7839 * cse.c (canon_hash): Compare rtx pointers instead of register
7840 numbers. This is required for the Xtensa port.
7841 * integrate.c (copy_insn_list): Handle case where the static
7842 chain is in memory and the memory address has to be copied to
7843 a register.
7844 * doc/invoke.texi (Option Summary): Add Xtensa options.
7845 (Xtensa Options): New node.
7846 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
7847
c3d5c3fa
ZW
78482002-01-23 Zack Weinberg <zack@codesourcery.com>
7849
a63bea75
ZW
7850 * diagnostic.c (internal_error): Do ICE suppression only
7851 when ENABLE_CHECKING is not defined.
7852
c3d5c3fa
ZW
7853 * c-typeck.c (require_complete_type): Return error_mark_node
7854 if type is error_mark_node.
7855
1398974c
JJ
78562002-01-23 Janis Johnson <janis187@us.ibm.com>
7857
7858 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
7859 -Os and issue a warning.
7860
807633e5
ZW
78612002-01-23 Zack Weinberg <zack@codesourcery.com>
7862
7863 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
7864 current (lack of) need for host configuration by hand.
7865
7866 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
7867 references. Documentation of some target macros moved from
7868 hostconfig.texi to tm.texi.
7869
cf8002d0
WC
78702002-01-23 Will Cohen <wcohen@redhat.com>
7871
7872 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
7873 defined.
7874
d1e76310
KH
78752002-01-23 Kazu Hirata <kazu@hxi.com>
7876
7877 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
7878 operand[3].
7879
b2115575
JM
78802002-01-23 Jason Merrill <jason@redhat.com>
7881
f893c16e
JM
7882 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
7883
b2115575
JM
7884 * function.c (assign_parms): Don't put args of inline functions
7885 into registers when not optimizing.
7886
6bacc7b0
NC
78872002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
7888
7889 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
7890 (prologue_use): New pattern.
7891 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
7892 preference to gen_rtx_USE.
7893 (thumb_expand_prologue): Use gen_prologue_use in preference to
7894 gen_rtx_USE.
7895 (thumb_expand_epilogue): Use gen_prologue_use in preference to
7896 gen_rtx_USE.
7897
a415f7bc
HPN
78982002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
7899
7900 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
7901
5372b3fb
NB
79022002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
7903
7904 PR c/3504
7905 * doc/extend.texi: Correct documentation of __alignof__.
7906
bd571ffc
ZW
79072002-01-22 Zack Weinberg <zack@codesourcery.com>
7908
7909 * params.h: Rename arguments of DEFPARAM so that it will be
7910 recognized as a translation keyword.
7911
333c8841
AH
79122002-01-22 Aldy Hernandez <aldyh@redhat.com>
7913
bd571ffc
ZW
7914 * extend.texi: Document altivec functions.
7915 Fix N-bit adjectives in X86 builtin documentation.
333c8841 7916
38979c65
AO
79172002-01-22 Alexandre Oliva <aoliva@redhat.com>
7918
7919 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
7920 auto_inc_dec values.
7921
7458a9f0
RE
79222002-01-22 Richard Earnshaw <rearnsha@arm.com>
7923
7924 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
7925 after backslash.
7926 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
7927
129bd0c4
AO
79282002-01-22 Alexandre Oliva <aoliva@redhat.com>
7929
7930 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
7931
8b9b74a9
RH
79322002-01-22 Richard Henderson <rth@redhat.com>
7933
7934 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
7935 copy_insn not copy_rtx.
7936
d0c9db30
AM
79372002-01-23 Alan Modra <amodra@bigpond.net.au>
7938
7939 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
7940 "nonzero" as that might add "1" bits. Ensure "constop" is
7941 properly sign extened.
7942 (force_to_mode): Tweak for sign extended constop.
7943
1e7e480e
RH
79442002-01-22 Richard Henderson <rth@redhat.com>
7945
7946 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
7947 for_each_rtx instead of assuming we're already looking at the MEM.
7948 (split_small_symbolic_mem_operand): Likewise.
7949 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7950 * config/alpha/alpha.md (small symbolic memory splitters): Update.
7951
79522002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
7953
7954 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
7955 sequence number for the literal.
7956 (divmoddi_internal_er): Likewise.
7957
b7f2fb96
CR
79582002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
7959
7960 PR java/4972
7961 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
7962 in LIBICONV variable.
7963 * configure: Regenerated.
7964
f66a0046
KW
79652002-01-22 Krister Walfridsson <cato@df.lth.se>
7966
7967 * dependence.c (build_def_use): Remove array_idx.
7968
e3b0efd1
KW
7969 * dwarfout.c (last_filename): Remove.
7970 (output_compile_unit_die): Remove last_filename.
7971
d8086cbb
RS
79722002-01-22 Roger Sayle <roger@eyesopen.com>
7973 Richard Henderson <rth@redhat.com>
7974
7975 PR opt/3640
7976 * fold-const.c (fold): Optimize unsigned comparisons against
7977 UINT_MAX (and similar unsigned constants).
7978
e8d52ba0
JJ
79792002-01-22 Janis Johnson <janis187@us.ibm.com>
7980
d8086cbb 7981 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 7982 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 7983 against the predicate.
11303d15 7984
e8d52ba0
JJ
7985 PR target/5379
7986 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
7987 for the address operand.
7988
cc7b420e
RH
79892002-01-22 Richard Henderson <rth@redhat.com>
7990
7991 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
7992
816e265a
CR
79932002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
7994
7995 PR other/5450
cc7b420e
RH
7996 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
7997 preprocessor flags.
816e265a 7998
7c884404
JT
79992002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
8000
8001 * config.gcc (x86_64-*-netbsd*): New target.
8002 * config/i386/netbsd64.h: New file.
8003
2b672c08
AH
80042002-01-22 Aldy Hernandez <aldyh@redhat.com>
8005
d8086cbb 8006 * regrename.c (kill_value): Fix typo.
2b672c08
AH
8007
80082002-01-22 Aldy Hernandez <aldyh@redhat.com>
8009
d8086cbb 8010 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 8011
d8086cbb 8012 * config/rs6000/rs6000.h: Same.
2b672c08 8013
d8086cbb
RS
8014 * function.c (instantiate_virtual_regs): Remove
8015 STARTING_FRAME_PHASE.
8016 (assign_stack_local_1): Same.
8017 Calculate frame phase.
2b672c08 8018
4b02997f
NC
80192002-01-22 Nick Clifton <nickc@redhat.com>
8020
8021 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8022 variable declaration to outer scope in order to simplify
8023 future extensions.
8024 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8025 arm_hard_regno_mode_ok.
8026 * config/arm/arm-protos.h: Add a prototype for
8027 arm_hard_regno_mode_ok.
8028 * config/arm/arm.c (soft_df_operand): Remove now redundant
8029 check for DImode values using IP_REGNUM.
8030 (nonimmediate_soft_df_operand): Remove now redundant check for
8031 DImode values using IP_REGNUM.
8032 (arm_hard_regno_mode_ok): New function. New check: make sure
8033 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
8034
8035 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8036 note with a USE.
8037 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8038
8a827ab2
JM
80392002-01-22 Jason Merrill <jason@redhat.com>
8040
8041 * c-semantics.c (genrtl_compound_stmt): Only check nesting
8042 consistency if this COMPOUND_STMT is scoped.
8043
cf403648
KH
80442002-01-22 Kazu Hirata <kazu@hxi.com>
8045
8046 * predict.c: Fix formatting.
8047 * print-tree.c: Likewise.
8048 * protoize.c: Likewise.
8049 * real.h: Likewise.
8050 * rtl.h: Likewise.
8051 * sbitmap.h: Likewise.
8052 * scan.c: Likewise.
8053 * sched-deps.c: Likewise.
8054 * sched-vis.c: Likewise.
8055 * sdbout.c: Likewise.
8056 * sibcall.c: Likewise.
8057 * ssa.c: Likewise.
8058 * ssa-ccp.c: Likewise.
8059 * ssa-dce.c: Likewise.
8060 * stmt.c: Likewise.
8061 * stor-layout.c: Likewise.
8062 * system.h: Likewise.
8063
aea9695c
RK
8064Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8065
a8765ae7
RK
8066 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8067 if fits in bounds of base type.
8068
aea9695c
RK
8069 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8070 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8071 (add_bound_info, default): If can't find a context, make a
8072 SAVE_EXPR.
8073 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8074
58bf601b
HPN
80752002-01-22 Hans-Peter Nilsson <hp@axis.com>
8076
8077 * c-typeck.c (parser_build_binary_op): If result from
8078 build_binary_op is ERROR_MARK just return error_mark_node without
8079 further processing.
8080
f982f805
JT
80812002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
8082
8083 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8084 Split a.out-specific bits into...
8085 * config/netbsd-aout.h: ...this.
8086 * config/netbsd-elf.h: New file.
8087 * config/alpha/netbsd-elf.h: Remove.
8088 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8089 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 8090 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
8091 (ENDFILE_SPEC): Likewise.
8092 (LINK_SPEC): Likewise.
8093 (CPP_SPEC): Likewise.
8094 (ASM_SPEC): Likewise.
8095 (LIB_SPEC): Likewise.
8096 (SWITCH_TAKES_ARG): Likewise.
8097 (TARGET_MEM_FUNCTIONS): Likewise.
8098 (CPP_PREDEFINES): Redefine.
8099 (ASM_FINAL_SPEC): Remove redefinition.
8100 (ASM_COMMENT_START): Redefine.
8101 (FUNCTION_PROFILER): Define.
8102 (TARGET_VERSION): Redefine.
8103 Comment and formatting cleanup.
8104 * config/i386/netbsd.h: Include <netbsd-aout.h>.
8105 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8106 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8107 big- or little-endian.
8108 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8109 * config.gcc (*-*-netbsd*): Add definitions common to all
8110 NetBSD configs.
8111 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8112 gnu_ld definitions. Add netbsd-elf.h to and remove
8113 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
8114 tmake_file, and don't lose previous tmake_file contents.
8115 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8116 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8117 gnu_ld definitions. Add netbsd-elf.h to tm_file.
8118 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8119 (mipsel-*-netbsd*): Rename this to...
8120 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
8121 mips/little.h to tm_file for mips*el-*.
8122 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8123 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8124 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8125
2e396476
JDA
81262002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8127
8128 * pa-protos.h (reg_before_reload_operand): New function prototype.
8129 * pa.c (reg_before_reload_operand): New function implementation.
8130 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
8131 contraints to "*m".
8132
3b5708e7
FS
81332002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8134
8135 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8136
85e79f96
JDA
81372002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8138
8139 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8140 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8141 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8142 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8143 (ENDFILE_SPEC): Undefine.
8144 (STARTFILE_SPEC): Redefine for PA.
8145
38abadee
FS
81462002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8147
8148 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8149
94f1d97c
DJ
81502002-01-21 Daniel Jacobowitz <drow@mvista.com>
8151
8152 * config.gcc: Add entries to supported PowerPC --with-cpu
8153 types.
8154
0333394e
JJ
81552002-01-21 Jakub Jelinek <jakub@redhat.com>
8156
8157 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8158 true for 64-bit mode only SSE registers in 32-bit mode.
8159
e9d1b155
KH
81602002-01-21 Kazu Hirata <kazu@hxi.com>
8161
8162 * unwind-dw2.c: Fix formatting.
8163 * unwind-dw2-fde.c: Likewise.
8164 * unwind-dw2-fde.h: Likewise.
8165 * unwind-pe.h: Likewise.
8166 * varasm.c: Likewise.
8167 * varray.h: Likewise.
8168
07338cf8
HPN
81692002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
8170
8171 Remove workaround for register stack overwrite bug in mmix.
8172 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8173 support for TARGET_REG_STACK_FILL_BUG.
8174 * config/mmix/mmix.h: Remove member has_call_without_parameters.
8175 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8176 Delete.
8177 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8178 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8179 -mno-reg-stack-fill-bug-workaround.
8180 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8181 machine member has_call_without_parameters.
8182 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8183 -mreg-stack-fill-bug-workaround and
8184 -mno-reg-stack-fill-bug-workaround.
8185 (MMIX Options): Ditto.
8186
7192cbf1
KH
81872002-01-21 Kazu Hirata <kazu@hxi.com>
8188
8189 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8190 as appropriate.
8191 Remove redundant code.
8192
d1552d7b
JM
81932002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
8194
8195 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8196 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8197 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8198 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8199 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8200 out target macro definitions and non-target-specific comments
8201 mostly taken from old versions of the manual.
8202
ed168e45
KH
82032002-01-20 Kazu Hirata <kazu@hxi.com>
8204
8205 * config/h8300/h8300.h: Fix comment formatting.
8206 * config/ia64/aix.h: Likewise.
8207 * config/ia64/ia64-protos.h: Likewise.
8208 * config/ia64/ia64.c: Likewise.
8209 * config/ia64/ia64.h: Likewise.
8210 * config/ia64/ia64intrin.h: Likewise.
8211 * config/ia64/linux.h: Likewise.
8212 * config/ia64/unwind-aix.c: Likewise.
8213 * config/ia64/unwind-ia64.c: Likewise.
8214
005e3e05
KH
82152002-01-20 Kazu Hirata <kazu@hxi.com>
8216
8217 * config/h8300/h8300.c: Revise comments about shift code.
8218
64bead4c
KH
82192002-01-20 Kazu Hirata <kazu@hxi.com>
8220
8221 * config/h8300/h8300.c (function_arg): Update a comment.
8222
ed863595
KH
82232002-01-20 Kazu Hirata <kazu@hxi.com>
8224
8225 * config/h8300/h8300.md: Update the comments at the beginning
8226 of the file.
8227
5904dc87
KH
82282002-01-20 Kazu Hirata <kazu@hxi.com>
8229
8230 * config/i370/i370.c: Fix comment formatting.
8231 * config/i370/i370.h: Likewise.
8232 * config/i370/i370.md: Likewise.
8233 * config/i370/linux.h: Likewise.
8234
9702143f
RK
8235Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8236
cbafacd1
RK
8237 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8238
9702143f
RK
8239 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8240 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8241 in incomplete case.
8242
6b6996b8
GS
82432002-01-20 Graham Stott <grahams@redhat.com>
8244
8245 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8246
eab854f6
JDA
82472002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
8248
8249 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8250
5b029315
TR
82512002-01-19 Tom Rix <trix@redhat.com>
8252
8253 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8254
1d690052
AH
82552002-01-18 Aldy Hernandez <aldyh@redhat.com>
8256
d8086cbb 8257 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 8258
d8086cbb
RS
8259 * function.c (assign_stack_local_1): Adjust x_frame_offset with
8260 STARTING_FRAME_PHASE.
8261 (STARTING_FRAME_PHASE): New.
8262 (instantiate_virtual_regs): Check saneness of
8263 STARTING_FRAME_PHASE.
1d690052 8264
d8086cbb 8265 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 8266
4dd8c093
AO
82672002-01-19 Alexandre Oliva <aoliva@redhat.com>
8268
8269 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8270
6f2a28d7
CR
82712002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
8272
8273 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8274 be used for bootstrapping GCC 3.0.
8275
8763a465
KH
82762002-01-18 Kazu Hirata <kazu@hxi.com>
8277
8278 * config/h8300/h8300.md: Fix an insn length.
8279
3ef42a0c
KH
82802002-01-18 Kazu Hirata <kazu@hxi.com>
8281
8282 * bitmap.h: Fix comment formatting.
8283 * combine.c: Likewise.
8284 * cppfiles.c: Likewise.
8285 * c-pragma.h: Likewise.
8286 * c-typeck.c: Likewise.
8287 * df.c: Likewise.
8288 * dwarf2out.c: Likewise.
8289 * function.c: Likewise.
8290 * gcc.c: Likewise.
8291 * genattrtab.c: Likewise.
8292 * gthr-win32.h: Likewise.
8293 * haifa-sched.c: Likewise.
8294 * predict.c: Likewise.
8295 * rtlanal.c: Likewise.
8296 * rtl.h: Likewise.
8297 * unwind-dw2-fde.h: Likewise.
8298 * unwind-pe.h: Likewise.
8299 * vmsdbgout.c: Likewise.
8300
dd4dc3cd
RK
8301Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8302
8303 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8304 if type_required and passed decl.
8305
5fb4cf24
AH
83062002-01-17 Aldy Hernandez <aldyh@redhat.com>
8307
d8086cbb
RS
8308 * config.gcc (cpu_type): Include altivec.h in powerpc
8309 extra_headers.
8310 Same for darwin.
5fb4cf24 8311
d8086cbb 8312 * config/rs6000/altivec.h: New.
5fb4cf24 8313
2705baf5
DE
83142002-01-17 David Edelsohn <edelsohn@gnu.org>
8315
8316 * doc/install.texi (*-ibm-aix*): Update assembler and exception
8317 handling information.
8318 * doc/trouble.texi (Interoperation): Add libstdc++ information
8319 for AIX.
8320 (Misunderstandings): Add template instantiation and static template
8321 member information for AIX.
8322
dbd680e1
JM
83232002-01-17 Jason Merrill <jason@redhat.com>
8324
821adc5e
JM
8325 * dbxout.c (dbxout_type): Support const and volatile.
8326
dbd680e1
JM
8327 * except.c (add_partial_entry): Remove backwards compatibility code.
8328 (end_protect_partials): Likewise.
8329
d0e82870
JJ
83302002-01-17 Jakub Jelinek <jakub@redhat.com>
8331
8332 * config/ia64/ia64.md (prologue_use): New.
8333 * config/ia64/ia64.c (ia64_expand_prologue): Use
8334 gen_prologue_use instead of gen_rtx_USE.
8335 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8336 as CODE_FOR_pred_rel_mutex.
8337 (ia64_sched_reorder2): Likewise.
8338
f9f45c65
EC
83392002-01-16 Eric Christopher <echristo@redhat.com>
8340
8341 * config/mips/r3900.h: Reformat.
8342 (SUBTARGET_CPP_SIZE_SPEC): Remove.
8343 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8344 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8345 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8346 * config/mips/t-elf: Remove mips3 multilib.
8347
c66c8b0e
L
83482002-01-16 H.J. Lu <hjl@gnu.org>
8349
8350 * config/mips/linux.h: Include "mips/abi64.h".
8351
5f083b72
L
83522002-01-16 H.J. Lu <hjl@gnu.org>
8353
8354 * config/mips/t-linux: New.
8355
8356 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8357
8358 * config/mips/linux.h: Don't include "gofast.h".
8359 (INIT_SUBTARGET_OPTABS): Removed.
8360
af3c90a6
KH
83612002-01-16 Kazu Hirata <kazu@hxi.com>
8362
8363 * config/h8300/h8300-protos.h: Replace emit_a_shift with
8364 output_a_shift.
8365 * config/h8300/h8300.c: Likewise.
8366 * config/h8300/h8300.md: Likewise.
8367
a1bf0a16
KH
83682002-01-16 Kazu Hirata <kazu@hxi.com>
8369
8370 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8371 spaces after an opcode name.
8372 (pushqi1_h8300hs): Likewise.
8373 (pushhi1_h8300hs): Likewise.
8374
88ab0d1c
KH
83752002-01-16 Kazu Hirata <kazu@hxi.com>
8376
8377 * doc/extend.texi: Replace "option" with "attribute"
8378 appropriately.
8379
51c561e3
JJ
83802002-01-16 Jakub Jelinek <jakub@redhat.com>
8381
8382 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8383 (and:DI () (const_int -8)).
8384 (split_small_symbolic_mem_operand): Split
8385 (mem (and:DI () (const_int -8)).
8386
b8c1a6b8
JJ
83872002-01-16 Jakub Jelinek <jakub@redhat.com>
8388
8389 PR target/5309:
d8086cbb 8390 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
8391 same way as TYPE_IMUL.
8392 (ultrasparc_sched_reorder): Likewise.
8393 * config/sparc/sparc.md (type): Add comment to update
8394 ultrasparc_sched_reorder when making changes.
8395
1e4e4df2
KH
83962002-01-16 Kazu Hirata <kazu@hxi.com>
8397
8398 * doc/invoke.texi: Change the dump file name of block
8399 reordering pass from 28.bbro to 29.bbro.
8400 Mention -dk option.
8401
14d920c0
JH
8402Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
8403
8404 * i386.md (minsf splitter): Fix pasto.
8405
2e99323f
NC
84062002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8407
8408 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8409 to frame pointer initialisation instruction.
8410 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8411 initialisation instruction.
ab8081c1
NC
8412 (soft_df_operand): Do not accept the IP register.
8413 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 8414
c4031a04
JJ
84152002-01-16 Jakub Jelinek <jakub@redhat.com>
8416
8417 PR target/5357:
8418 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8419 MASK_V8 being both set.
8420
44b8152b
UW
84212002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
8422
8423 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8424 insn for GOT register; add REG_MAYBE_DEAD notes instead.
8425 config/s390/s390.md (call, call_value): Add GOT register to
8426 CALL_INSN_FUNCTION_USAGE where needed.
8427 (call_exp, call_value_exp): New.
8428
1d6e90ac
NC
84292002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8430
8431 * config/arm/arm.c: General formatting tidy up.
8432
84332002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
8434
8435 * calls.c (try_to_integrate): Use "(size_t)" intermediate
8436 cast and when casting an integer literal to "rtx" pointer.
8437 (expand_call): Likewise.
8438 * flow.c (try_pre_increment): Likewise.
8439 (find_use_as_address): Likewise.
8440 * integrate.c (expand_iline_function): Likewise.
8441 * regmove.c (try_auto_increment): Likewise.
8442
1d6e90ac 84432002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
8444
8445 * sched-rgn.c (passed): Use sbitmap_free.
8446 (header): Likewise.
8447 (inner): Likewise.
8448 (in_queue): Likewise.
8449 (in_stack): Likewise.
8450
31fce3c4
EC
84512002-01-15 Eric Christopher <echristo@redhat.com>
8452
8453 * flow.c (propagate_one_insn): Change to use fatal_insn.
8454
c99d986a
KH
84552002-01-15 Kazu Hirata <kazu@hxi.com>
8456
8457 * expmed.c (extract_fixed_bit_field): Remove unused code.
8458 * system.h: Poison SLOW_ZERO_EXTEND.
8459 * doc/tm.texi: Remove.
8460 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8461 * config/arm/arm.h: Likewise.
8462 * config/avr/avr.h: Likewise.
8463 * config/clipper/clipper.h: Likewise.
8464 * config/convex/convex.h: Likewise.
8465 * config/d30v/d30v.h: Likewise.
8466 * config/dsp16xx/dsp16xx.h: Likewise.
8467 * config/elxsi/elxsi.h: Likewise.
8468 * config/fr30/fr30.h: Likewise.
8469 * config/h8300/h8300.h: Likewise.
8470 * config/i370/i370.h: Likewise.
8471 * config/i386/i386.h: Likewise.
8472 * config/m68k/m68k.h: Likewise.
8473 * config/mips/mips.h: Likewise.
8474 * config/ns32k/ns32k.h: Likewise.
8475 * config/pdp11/pdp11.h: Likewise.
8476 * config/pj/pj.h: Likewise.
8477 * config/s390/s390.h: Likewise.
8478 * config/sh/sh.h: Likewise.
8479 * config/stormy16/stormy16.h: Likewise.
8480 * config/v850/v850.h: Likewise.
8481 * config/vax/vax.h: Likewise.
8482 * config/we32k/we32k.h: Likewise.
8483
acfab996
AH
84842002-01-15 Aldy Hernandez <aldyh@redhat.com>
8485
d8086cbb
RS
8486 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
8487 (altivec_lvsl): Change constraint to b.
8488 (altivec_lvsr): Same.
8489 (altivec_lvebx): Same.
8490 (altivec_lvehx): Same.
8491 (altivec_lvewx): Same.
8492 (altivec_lvxl): Same.
8493 (altivec_lvx): Same.
8494 (altivec_stvx): Add parallel.
8495 (altivec_stvxl): Same.
8496 (altivec_stvehx): Same.
8497 (altivec_stvebx): Same.
8498 (altivec_stvebx): Same.
acfab996 8499
5e505bc9
AH
85002002-01-15 Aldy Hernandez <aldyh@redhat.com>
8501
d8086cbb 8502 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 8503
d8086cbb 8504 * config/rs6000/altivec.h: Delete.
5e505bc9 8505
d8086cbb 8506 * config/rs6000/altivec-defs.h: Add.
5e505bc9 8507
5c41fdfb
JDA
85082002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8509
8510 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
8511 and UMOD modes.
8512
8513 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
8514 less than or equal to eight bytes.
8515
8516 * vax.md (andsi3): Remove constraints and change SET destination
8517 operand type to nonimmediate_operand.
8518 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
8519 when it is a CONST_INT.
8520
de097a2d
JM
85212002-01-15 Jason Merrill <jason@redhat.com>
8522
8523 * c-common.def (FILE_STMT): New code.
8524 * c-common.c (statement_code_p): It's a statement.
8525 * c-common.h (stmt_tree_s): Add x_last_filename.
8526 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
8527 (last_expr_filename): New macro.
8528 * c-semantics.c (begin_stmt_tree): Initialize it.
8529 (add_stmt): If the filename changed, also insert a
8530 FILE_STMT.
8531 (expand_stmt): Handle seeing one.
8532
4a913dd6
EC
85332002-01-15 Eric Christopher <echristo@redhat.com>
8534
8535 * flow.c (propagate_one_insn): Add error message and print out
8536 insn for debugging.
8537
006946e4
JM
85382002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8539
8540 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
8541 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
8542 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
8543 TRAMPOLINE_ALIGNMENT.
8544 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
8545 to be in bits.
8546 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
8547 PCC_BITFIELD_TYPE_MATTERS.
8548 * config/interix.h (STDC_VALUE): Remove. Use
8549 STDC_0_IN_SYSTEM_HEADERS.
8550 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
8551 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
8552 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
8553
751a1458
CR
85542002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
8555
8556 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
8557 not work on this platform currently.
8558
57771fe8
JM
85592002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8560
8561 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
8562 readonly_warning in _().
8563
0e83ceb1 85642002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 8565
0e83ceb1 8566 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 8567
8e2e89f7
KH
85682002-01-15 Kazu Hirata <kazu@hxi.com>
8569
0e83ceb1
DR
8570 * config/h8300/h8300.c (print_operand): Remove support for
8571 unused operand characters.
8572
8e2e89f7
KH
8573 * read-rtl.c: Fix formatting.
8574 * real.c: Likewise.
8575 * recog.c: Likewise.
8576 * regclass.c: Likewise.
8577 * regmove.c: Likewise.
8578 * reg-stack.c: Likewise.
8579 * reload1.c: Likewise.
8580 * rtlanal.c: Likewise.
8581
b531087a
KH
85822002-01-15 Kazu Hirata <kazu@hxi.com>
8583
8584 * config/i386/i386.c: Fix formatting.
8585
7c94ce7f
JJ
85862002-01-15 Jakub Jelinek <jakub@redhat.com>
8587
8588 * c-typeck.c (process_init_element): Don't save_expr
8589 COMPOUND_LITERAL_EXPR if just its initializer will be used.
8590
6041bf2f
DE
85912002-01-15 David Edelsohn <edelsohn@gnu.org>
8592
8593 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
8594 emit optional traceback table if optimize_size or TARGET_ELF.
8595 * config/rs6000/rs6000.md (prefetch): New.
8596
8559c8c0
AJ
85972002-01-15 Andreas Jaeger <aj@suse.de>
8598
8599 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
8600
70f122f2
KH
86012002-01-15 Kazu Hirata <kazu@hxi.com>
8602
8603 * mips-tfile.c: Fix formatting.
8604
6a7b4ca6
JH
8605Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
8606
8607 * unroll.c (final_reg_note_copy): Fix previous commit.
8608
e7afe229
KH
86092002-01-14 Kazu Hirata <kazu@hxi.com>
8610
8611 * config/h8300/h8300-protos.h: Remove the prototype for
8612 eq_operator.
8613 * config/h8300/h8300.c (eq_operator): Remove.
8614
7d378549
RH
86152002-01-14 Richard Henderson <rth@redhat.com>
8616
8617 * config/i386/i386.md (prefetch): Tidy.
8618 (prefetch_3dnow): Fix locality operand.
8619
ab093b81
RH
86202002-01-14 Richard Henderson <rth@redhat.com>
8621
8622 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
8623 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
8624
d300f51f
HPN
86252002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
8626
8627 * reload1.c (reload_combine): Pass reg_sum replacement through
8628 copy_rtx in loop performing multiple changes.
8629
655dd289
JJ
86302002-01-14 Jakub Jelinek <jakub@redhat.com>
8631
8632 * except.c (remove_unreachable_regions): New.
8633 (free_eh_status): Clear exception_handler_labels.
8634 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
8635 (find_exception_handler_labels): Don't add the same label more than
8636 once.
8637 (remove_exception_handler_label): Don't die if
8638 find_exception_handler_labels hasn't been called for the current
8639 function yet.
8640
1fba46a7
JH
8641Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
8642
8643 * toplev.c (rest_of_compilation): Rebuild jump labels after
8644 gcse.
8645
0975678f
JM
86462002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
8647
8648 * doc/extend.texi: Move documentation of X86 built-in functions
8649 here.
8650 * doc/invoke.texi: From here.
8651 * doc/sourcebuild.texi: Document location of documentation for
8652 machine built-in functions.
8653
969815c7
CF
86542002-01-13 Christopher Faylor <cgf@redhat.com>
8655
8656 * cppfiles.c (TEST_THRESHOLD): New macro.
8657 (SHOULD_MMAP): Ditto.
8658 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
8659 be used.
8660
494c950b
JH
8661Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
8662
8663 * unroll.c (final_reg_note_copy): Properly handle
8664 REG_LABEL
8665 (unroll_loops): Fix LOOP_CONDITION heuristics.
8666
69a0611f
GK
86672002-01-14 Geoffrey Keating <geoffk@redhat.com>
8668
8669 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
8670 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
8671
b90e45ae
JH
8672Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
8673
8674 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
8675 threaded loop.
8676
8377288b
TR
86772002-01-14 Tom Rix <trix@redhat.com>
8678
8679 * config/rs6000/rs6000.md: Fix typo with sradi.
8680
9f37ccb1
UW
86812002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
8682
8683 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
8684 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
8685 (clrstrdi, clrstrsi): Adapt callers.
8686
8687 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
8688
8559c8c0 8689 (movti splitter): Never use register 0 as base register.
9f37ccb1 8690
6c2d03d0
HP
86912002-01-14 Hartmut Penner <hpenner@de.ibm.com>
8692
8559c8c0
AJ
8693 * combine.c (simplify_shift_const): Always generate new rtx
8694 for shift expression instead of reusing given expression.
6c2d03d0 8695
d3e98208
RK
8696Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8697
8698 * config/alpha/alpha.c (alpha_expand_mov): Don't call
8699 alpha_legitimize_address unless mode is Pmode.
8700
9f339dde
GK
87012002-01-13 Geoffrey Keating <geoffk@redhat.com>
8702
8703 * doc/md.texi (Modifiers): Document the '*' constraint for the
8704 user.
8705
8706 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
8707 * doc/extend.texi (Function Attributes): 'interrupt' is valid
8708 for xstormy16 too.
8709
02a10130
RH
87102002-01-13 Richard Henderson <rth@redhat.com>
8711
8712 * reload.c (find_reloads): Use a hard reg destination as reload reg
8713 for an input reload of the source.
8714
61d47787
GP
87152002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8716
8717 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
8718 more generic.
8719
f0df8029
DR
8720Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
8721
8722 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8723 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8724
d2a37256
DR
8725 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
8726
a9e8a5ee
RK
8727Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8728
8729 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
8730
bc06712d
TR
87312002-01-12 Tom Rix <trix@redhat.com>
8732
8559c8c0 8733 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
8734 TARGET_POWERPC64.
8735
7cbe9bb7
RH
87362002-01-12 Richard Henderson <rth@redhat.com>
8737
38b29e64
RH
8738 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
8739
58605ba0
RH
8740 * doc/invoke.texi: Update Alpha options.
8741
7cbe9bb7
RH
8742 * doc/invoke.texi: Update i386 built-in function lists.
8743
9d560860
JH
8744Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
8745
8746 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
8747 referencing outside.
8748
bb93b973
RK
8749Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8750
8751 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
8752 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
8753 offsets, and change line folding.
8754 * optabs.c (expand_binop): Remove warnings.
8755 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 8756
f9f6b7df
GS
87572002-01-12 Graham Stott <grahams@redhat.com>
8758
8759 * attribs.c (handle_deprecated_attribute): constify WHAT.
8760 * diagnostic.c (warn_deprecated_use): Add braces, fixes
8761 dangling else warning and constify WHAT.
8762 * except.h (struct function, struct inline_remap): Move
8763 struct tag forward defs before all prototypes.
8764 (duplicate_eh_regions): Whitespace.
8765
4a692617
NC
87662002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
8767
8768 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8769 MODE_BASE_REG_CLASS.
8770 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
8771
e37af218
RH
87722002-01-12 Richard Henderson <rth@redhat.com>
8773
8774 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
8775 (ix86_expand_vector_move): New.
8776 (bdesc_2arg): Remove andps, andnps, orps, xorps.
8777 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
8778 Remove old prefetch builtins. Special case the logicals removed above.
8779 (ix86_expand_builtin): Likewise.
8780 (safe_vector_operand): Use V4SFmode, not TImode.
8781 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
8782 (ix86_expand_timode_binop_builtin): New.
8783 * config/i386/i386-protos.h: Update.
8784 * config/i386/i386.h (enum ix86_builtins): Update.
8785 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
8786 Use ix86_expand_vector_move in vector move expanders.
8787 (movti_internal, movti_rex64): Add xorps alternative.
8788 (sse_clrv4sf): Rename and adjust from sse_clrti.
8789 (prefetch): Don't work so hard.
8790 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
8791 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
8792 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
8793
6f1a6c5b
RH
87942002-01-11 Richard Henderson <rth@redhat.com>
8795
8796 * config/i386/mmintrin.h: New file.
8797 * config/i386/xmmintrin.h: New file.
8798 * config.gcc (i?86-*-*): Add extra_headers.
8799 * simplify-rtx.c (simplify_unary_operation): Handle saturating
8800 truncation codes.
8801 (simplify_binary_operation): Handle saturating arithmetic codes.
8802 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
8803 not the lowpart subreg.
8804 (ix86_expand_builtin): Return a TImode dummy register instead of 0
8805 on error.
8806 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
8807
cdb574d3
MH
88082002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8809
8810 * conflict.c (conflict_graph_compute): Free regsets when finished.
8811 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 8812
cf11ac55
HB
88132002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8814
8815 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
8816 every where we allocate a register.
8817
76ac938b
MH
88182002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8819
8820 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
8821 * lcm.c (compute_earliest, compute_farthest): Likewise.
8822
a84b4898
JJ
88232002-01-11 Janis Johnson <janis187@us.ibm.com>
8824
8825 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
8826
aaef1c12
JJ
88272002-01-11 Janis Johnson <janis187@us.ibm.com>
8828
8829 * doc/rtl.texi (Insns): Fix 2 typos.
8830
5d22c1a5
JM
88312002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
8832
8833 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
8834 options. Use @table @gcctabopt for MMIX options. Add index
8835 entries for MMIX options. Start new paragraph with first
8836 heading of the machine-dependent options.
8837
3e92902c
CR
88382002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
8839
8840 PR other/5299
8841 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
8842 * combine.c (force_to_mode): Same.
8843 * reload1.c (clear_reload_reg_in_use): Same.
8844
96ae8197
NC
88452002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
8846
8847 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
8848 and 'subtargets'.
8849
9b780582
AJ
88502002-01-11 Andreas Jaeger <aj@suse.de>,
8851 Brad Lucier <lucier@math.purdue.edu>
8852
8853 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
8854 mcpu.
8855
12300dad
DR
8856Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
8857
8858 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
8859 Protect with IN_LIBGCC.
8860 (LINK_EH_SPEC): Add required trailing space.
8861
27511a9a
NP
8862Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
8863
9b780582 8864 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
8865 under the filename which contains them.
8866 (check_identifier, finish_decl_top_level,
8867 lookup_name_current_level_global, shadow_record_fields): Remove.
8868
4daeab16
AJ
88692002-01-11 Andreas Jaeger <aj@suse.de>
8870
8871 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
8872 march.
8873
40571d67
RH
88742002-01-10 Richard Henderson <rth@redhat.com>
8875
8876 * config/alpha/alpha.c (print_operand): Add 'J'.
8877 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
8878 new operand with the sequence number for the lituse. When splitting
8879 the insns, use gen_movdi_er_high_g and generate a sequence number.
8880 (gen_movdi_er_high_g): Print the sequence number if non-zero.
8881
6525c0e7
AH
88822002-01-10 Aldy Hernandez <aldyh@redhat.com>
8883
d8086cbb
RS
8884 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
8885 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
8886 stvxl.
8887 (altivec_expand_builtin): Same.
8888 (altivec_expand_stv_builtin): New.
8889
8890 * config/rs6000/rs6000.h (rs6000_builtins): Same.
8891
8892 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
8893 ("altivec_lvehx"): New.
8894 ("altivec_lvewx"): New.
8895 ("altivec_lvxl"): New.
8896 ("altivec_lvx"): New.
8897 ("altivec_stvx"): New.
8898 ("altivec_stvebx"): New.
8899 ("altivec_stvehx"): New.
8900 ("altivec_stvewx"): New.
8901 ("altivec_stvxl"): New.
6525c0e7 8902
cda94cbb
RH
89032002-01-10 Richard Henderson <rth@redhat.com>
8904
8905 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
8906 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
8907 care not to delete instructions twice.
8908
df2c9a44
ZW
89092002-01-10 Zack Weinberg <zack@codesourcery.com>
8910
8911 * toplev.c: Don't declare environ (it's not used anywhere).
8912 * configure.in: Don't check for declaration of environ.
8913 * config/i386/xm-mingw32.h: Don't #define environ.
8914 * config.in, configure: Regenerate.
8915
5dd8a9b1
ZW
89162002-01-10 Zack Weinberg <zack@codesourcery.com>
8917
8918 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
8919 * configure: Regenerate.
8920
8921 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
8922 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
8923 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
8924 alpha/xm-vms.h.
8925 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
8926 LIMITS_H_TEST here, not in m68k/x-next.
8927 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
8928 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
8929
8930 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
8931 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
8932 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
8933
8934 * config/i386/x-djgpp: Renamed i386/t-djgpp.
8935 * config/m88k/x-dolph: Renamed m88k/t-dolph.
8936 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
8937 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
8938 replacement of quadlib.asm with quadlib.c.
8939
8940 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
8941 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
8942 config/rs6000/xm-beos.h: Delete file.
8943
8944 * config.gcc: Update to match above changes.
8945
d10dd44c
KH
89462002-01-10 Kazu Hirata <kazu@hxi.com>
8947
8948 * config/h8300/h8300.h: Fix comment typos.
8949 * config/h8300/h8300.md: Likewise.
8950 * config/h8300/lib1funcs.asm: Likewise.
8951
04894c5a
DJ
89522002-01-10 Dale Johannesen <dalej@apple.com>
8953
8954 PR optimization/5269
8955 * unroll.c (precondition_loop_p): Make *increment be the correct
8956 sign when n_iterations known, to avoid confusing caller.
8957
adc9fe67
KH
89582002-01-10 Kazu Hirata <kazu@hxi.com>
8959
8960 * doc/extend.texi (deprecated): Fix a typo.
8961
b446e5a2
JH
8962Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
8963
8964 * basic-block.h (update_br_prob_note): Declare.
8965 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
8966 (try_forward_edges): Care negative frequencies and update note.
8967 (outgoing_edges_match): Tweek conditional merging heuristics.
8968 (try_crossjump_to_edge): use update_br_prob_note.
8969 * cfglayout.c (fixup_reorder_chain): Likewise.
8970 * cfrtl.c (update_br_prob_note): New.
8971 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
8972
8973 * i386.c (ix86_decompose_address): Return -1 if address contains
8974 shift.
8975 (legitimate_address_p): Require ix86_decompose_address to return 1.
8976
8977 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
8978 (cprop_insn): Likewise.
8979
a01da83b
KH
89802002-01-10 Kazu Hirata <kazu@hxi.com>
8981
8982 * toplev.c: Fix formatting.
8983 * tree.c: Likewise.
8984 * tree-dump.c: Likewise.
8985 * unroll.c: Likewise.
8986 * unwind-dw2.c: Likewise.
8987 * unwind-dw2-fde.c: Likewise.
8988 * unwind-dw2-fde-glibc.c: Likewise.
8989 * unwind-sjlj.c: Likewise.
8990
9f85bca7
JM
89912002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
8992
8993 * doc/invoke.texi: Document PDP-11 options.
8994
f48f56b1
KH
89952002-01-10 Kazu Hirata <kazu@hxi.com>
8996
8997 * config/h8300/h8300.h: Fix formatting.
8998
ead39bdf 89992002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
9000
9001 Add __attribute__ ((deprecated)).
9002 * extend.texi: Document __attribute__ ((deprecated)).
9003 * invoke.texi: Document -Wno-deprecated-declarations.
9004 * testsuite/g++.dg/other/deprecated.C: New C++ test.
9005 * testsuite/gcc.dg/deprecated.c: New C test.
9006 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9007 (c_common_attribute_table): Add "deprecated" entry.
9008 (handle_deprecated_attribute): New function.
9009 * c-decl.c (deprecated_states): New enum.
9010 deprecated_state: State of "deprecated" handling.
9011 (start_decl): Set deprecated_state based on attributes.
9012 (grokdeclarator): Test for deprecated uses, propagate attribute.
9013 * c-typeck.c (build_component_ref): Test for deprecated fields.
9014 (build_external_ref): Test for deprecated primaries.
9015 * diagnostic.c (warn_deprecated_use) New function to issue
9016 warnings about __attribute__ ((depricated)) references.
9017 * flags.h (warn_deprecated_decl): Extern declared for
9018 -W[no-]deprecated-declarations option.
9019 * print-tree.c (print_node): Show deprecated flag status.
9020 * toplev.c (warn_deprecated_decl): Defined.
9021 (W_options): Added "deprecated-declaration".
9022 * toplev.h (warn_deprecated_use): Extern declared.
9023 * tree.h (struct tree_common): Define deprecated_flag.
9024 (TREE_DEPRECATED): New macro to access flag.
9025 * cp/call.c (build_call): Test for deprecated calls.
9026 * cp/class.c (add_implicitly_declared_members): Set global
9027 flag to tell grokdeclarator to not issue deprecated warnings.
9028 * cp/cp-tree.h: Add extern for adding_implicit_members.
9029 * cp/decl.c (deprecated_states): New enum.
9030 (start_decl): Set deprecated_state based on attributes.
9031 (grokdeclarator): Test for deprecated uses, propagate attribute.
9032 * cp/lex.c (do_identifier): Test for deprecated primaries.
9033 * cp/typeck.c (build_component_ref): Test for deprecated fields.
9034
ead39bdf 90352002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
9036
9037 Fix to assign attributes to inline member functions.
9038 * cp/decl.c (start_method): Handle attrlist.
9039
47073a38
KH
90402002-01-10 Kazu Hirata <kazu@hxi.com>
9041
9042 * combine.c (expand_field_assignment): Use subreg_lsb().
9043
d288e53d
DE
90442002-01-10 David Edelsohn <edelsohn@gnu.org>
9045
9046 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9047 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9048 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9049 Recurse for any operand of AND as long as constant is non-zero.
9050
08a02ffa
KH
90512002-01-10 Kazu Hirata <kazu@hxi.com>
9052
9053 * config/h8300/h8300.md: Remove constraints from expanders.
9054
c203e7fe
KH
90552002-01-10 Kazu Hirata <kazu@hxi.com>
9056
9057 * varasm.c: Fix formatting.
9058 * varray.c: Likewise.
9059 * vmsdbgout.c: Likewise.
9060 * xcoffout.c: Likewise.
9061
bcb3bc6d
JH
9062Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
9063
9064 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 9065 update edge probabilities to match.
bcb3bc6d 9066
0a553c7e
JM
90672002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9068
9069 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9070 dependencies.
9071 * doc/languages.texi, doc/sourcebuild.texi: New files.
9072 * doc/configfiles.texi: Make a subsubsection. Update.
9073 * doc/configterms.texi: Add @node. Remove warning that this isn't
9074 instructions for building GCC.
9075 * doc/makefile.texi: Make a subsection.
9076 * doc/gccint.texi: Update.
9077
adc7fcb8
JH
9078Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
9079
9080 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9081
5a4dd0b3
NP
9082Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
9083
9084 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9085
3987b9db
JH
9086Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
9087
9088 * optabs.c (expand_fix): Look for wider integer modes first.
9089
9090 * i386.md (mov?f): Avoid the fake const double trick for medium
9091 memory model.
9092 (min?f*/max?f*): Prohibit memory operands for i387 variant.
9093 (fop_df_4): Disable for SSE compilation.
9094
ceb15948 90952002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
9096
9097 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 9098 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 9099
e1623399
RH
91002002-01-10 Richard Henderson <rth@redhat.com>
9101
9102 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9103
c4abb293
RH
91042002-01-10 Richard Henderson <rth@redhat.com>
9105
9106 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9107 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
9108
d2604ae9
KH
91092002-01-10 Kazu Hirata <kazu@hxi.com>
9110
9111 * combine.c (can_combine_p): Fix a comment typo.
9112
766c7ad1
ZW
91132002-01-09 Zack Weinberg <zack@codesourcery.com>
9114
9115 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9116 empty list correctly. Change loop index $t to $f for
9117 consistency with rest of Makefile.
9118
95385cbb
AH
91192002-01-08 Aldy Hernandez <aldyh@redhat.com>
9120
9121 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9122 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9123
9124 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9125 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9126 (altivec_init_builtins): Same.
9127 (altivec_expand_unop_builtin): Return NULL_RTX on error.
9128 (altivec_expand_binop_builtin): Same.
9129 (altivec_expand_ternop_builtin): Same.
9130 (bdesc_dst): New.
9131
9132 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9133 ("altivec_vctuxs"): Fix typo.
9134 ("altivec_vnmsubfp"): Same.
9135 ("altivec_dssall"): New.
9136 ("altivec_mfvscr"): New.
9137 ("altivec_dss"): New.
9138 ("altivec_lvsl"): New.
9139 ("altivec_lvsr"): New.
9140 ("altivec_dstt"): New.
9141 ("altivec_dstst"): New.
9142 ("altivec_dststt"): New.
9143 ("altivec_dst"): New.
9144
9145 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9146 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9147
e4ac76b4
RH
91482002-01-09 Richard Henderson <rth@redhat.com>
9149
9150 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9151
c893e4a4
HPN
91522002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
9153
9154 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9155 function.
9156 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9157 prototype.
7387c700 9158 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 9159
f4f4d0f8
KH
91602002-01-09 Kazu Hirata <kazu@hxi.com>
9161
9162 * read-rtl.c: Fix formatting.
9163 * real.c: Likewise.
9164 * regclass.c: Likewise.
9165 * regrename.c: Likewise.
9166 * reg-stack.c: Likewise.
9167 * reload1.c: Likewise.
9168 * reload.c: Likewise.
9169 * rtl.c: Likewise.
9170
cc863bea
KH
91712002-01-09 Kazu Hirata <kazu@hxi.com>
9172
9173 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9174 to extract items in the expr_list chain.
9175
7b4dfe3d
RH
91762002-01-09 Richard Henderson <rth@redhat.com>
9177
9178 * config/vax/vax.c (vax_rtx_cost): Never abort.
9179
1d969638
RH
9180 * config/vax/vax.h (REAL_ARITHMETIC): Define.
9181
7d5ab30e
JH
91822002-01-09 Jan Hubicka <jh@suse.cz>
9183
9184 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9185
9503f3d1
RH
91862002-01-09 Richard Henderson <rth@redhat.com>
9187
9188 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9189 Unify code from various alternatives.
9190
42bd17b7
RH
91912002-01-09 Richard Henderson <rth@redhat.com>
9192
9193 * regrename.c (copy_value): Ignore the copy if the source register
9194 is present in the value chain with a narrower mode.
9195
bdca3c33
HB
91962002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9197
cda94cbb
RH
9198 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9199 for the c4x target. Also improve layout.
bdca3c33 9200
c73a5e94
RH
92012002-01-09 Richard Henderson <rth@redhat.com>
9202
9203 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9204 * config/m32r/m32r.md (and ior xor splitters): Swap operands
9205 to match insn patterns.
9206
dd0a18c0
RH
92072002-01-09 Richard Henderson <rth@redhat.com>
9208
9209 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9210 (copyprop_hardreg_forward_1): Likewise.
9211
1fd9ac1e
JDA
92122002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
9213
9214 * pa.md (decrement_and_branch_until_zero): Change predicate for
9215 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9216
5cb265ec
BM
92172002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9218
9219 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9220 gets undefined. For Darwin.
9221
fcd8fa8b
HB
92222002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9223
9224 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9225
bd3ab23a
MH
92262002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9227
9228 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9229
21e16bd6
RH
92302002-01-08 Richard Henderson <rth@redhat.com>
9231
9232 * regrename.c (copy_value): Ignore overlapping copies.
9233
a5376276
RH
92342002-01-08 Richard Henderson <rth@redhat.com>
9235
9236 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9237 as needed to avoid shared structure.
9238
18cf8dda
KH
92392002-01-08 Kazu Hirata <kazu@hxi.com>
9240
9241 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9242 H8/300H and H8/S.
9243
16c484c7
JM
92442002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9245
9246 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9247 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9248 documentation of obsolete macros.
9249 * system.h: Poison these macros.
9250 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9251 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9252 config/c4x/c4x.h, config/clipper/clipper.h,
9253 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9254 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9255 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9256 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9257 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9258 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9259 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9260 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9261 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9262 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9263 config/sparc/sparc.h, config/stormy16/stormy16.h,
9264 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9265 definitions and commented out definitions of obsolete macros.
9266 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9267 of MAX_INT_TYPE_SIZE.
9268
14b3e8ef
UW
92692002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9270
9271 * config/s390/s390.c (s390_preferred_reload_class): Never
9272 return ADDR_REGS if it isn't a subset of the given class.
9273 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9274 FP_REGS, but all superclasses as well.
9275
9276 * config/s390/s390.c (s390_function_profiler): Fix thinko.
9277
9278 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9279 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9280 must not be a const_int.
9281
a693284d
RH
92822002-01-08 Richard Henderson <rth@redhat.com>
9283
9284 * Makefile.in (toplev.o): Depend on options.h.
9285 (gcc.o): Depend on specs.h.
9286
b3ca30df
JJ
92872002-01-08 Jakub Jelinek <jakub@redhat.com>
9288
9289 * expr.c (store_expr): Convert VOIDmode constants back to target's
9290 mode.
9291
24dbb440
GP
92922002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9293
9294 * doc/invoke.texi: Markup gcc as @command. Refer to
9295 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9296 of http://gcc.gnu.org/thanks.html.
9297
234e114c
DJ
92982002-01-08 Dale Johannesen <dalej@apple.com>
9299
9300 * config/rs6000/rs6000.md: Add missing int register
9301 target case to movdf_low.
9302
0d24f4d1
ZW
93032002-01-08 Zack Weinberg <zack@codesourcery.com>
9304
9305 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9306 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
9307 (cppinit.o): Depend on except.h.
9308 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9309 s-specs): New rules.
9310
9311 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9312 Don't create specs.h/options.h/gencheck.h here. Remove
9313 unnecessary variable settings from last argument of AC_OUTPUT.
9314 * config.in, configure: Regenerate.
9315 * intl.c: Hardcode package name as "gcc".
9316
9317 * cppinit.c: Include except.h.
9318 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9319 appropriate.
9320 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9321 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9322 (!)USING_SJLJ_EXCEPTIONS.
9323 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9324
ed722f66
JM
93252002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9326
9327 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9328 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9329 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9330 documentation of obsolete macros.
9331 * system.h: Poison these macros.
9332 * config/d30v/d30v.h, config/ns32k/encore.h,
9333 config/stormy16/stormy16.h: Remove definitions and commented out
9334 definitions of obsolete macros.
9335
31e5e29a
NP
9336Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
9337
9338 * objc/objc-act.c (handle_class_ref): Mark the declaration of
9339 %sobjc_class_ref_%s as used - to prevent unwanted compiler
9340 warnings.
9341
bc1fa59c
UW
93422002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9343
9344 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9345 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9346 to insn adjusting stack/frame pointer.
0d24f4d1 9347 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
9348 accept operands that cause the insn to be non-splittable.
9349
a8086abf
GS
93502002-01-08 Graham Stott <grahams@redhat.com>
9351
9352 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9353 (C_TYPE_FIELDS_VOLATILE): Likewise.
9354 (C_TYPE_BEING_DEFINED): Likewise.
9355 (C_IS_RESERVED_WORD): Likewise.
9356 (C_TYPE_VARIABLE_SIZE): Likewise.
9357 (C_DECL_VARIABLE_SIZE): Likewise.
9358 (C_MISSING_PROTOTYPE_WARNED): Likewise.
9359 (C_SET_EXP_ORIGINAL_CODE): Likewise.
9360 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9361 parenthesis.
9362 (C_DECL_ANTICIPATED): Likewise.
9363 (c_build_type_variant): Add parenthesis.
9364
3f595aa1
JM
93652002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9366
9367 * gcc.c (option_map): Remove --version.
9368 (process_command): Handle -fversion following the GNU Coding
9369 Standards. Partially addresses PR other/704.
9370
5bc5a8f9
GS
93712002-01-08 Graham Stott <grahams@redhat.com>
9372
9373 * combine.c (combine_instructions): Fix typo.
9374
16ec4ebf
GS
93752002-01-08 Graham Stott <grahams@redhat.com>
9376
9377 * debug.h: Use "tree" and "rtx" throughout.
9378
9379 * debug.c: Likewise.
9380
4b69f385
NC
93812002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
9382
9383 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9384 constant pool, use the pool's version of the symbol instead.
9385
57d1019b
RH
93862002-01-07 Richard Henderson <rth@redhat.com>
9387
9388 * regrename.c (find_oldest_value_reg): Ignore the value chain if
9389 the original register was copied in a mode with a fewer number of
9390 hard registers than the desired mode.
9391 (copyprop_hardreg_forward_1): Likewise.
9392 (debug_value_data): Fix loop test.
9393 * toplev.c (parse_options_and_default_flags): Reenable
9394 -fcprop-registers at -O1.
9395
93962002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 9397
0d24f4d1
ZW
9398 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9399 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 9400
0d24f4d1
ZW
9401 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9402 predicates.
fa066a23 9403
0d24f4d1 9404 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 9405
8f949e7e
JDA
94062002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9407
9408 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9409 (pa_output_function_prologue): Output local label at the beginning of
9410 the prologue when profiling.
9411 (hppa_profile_hook): Use the local label rather than the function label.
9412 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9413
c62f2db5
AH
94142002-01-07 Aldy Hernandez <aldyh@redhat.com>
9415
0d24f4d1
ZW
9416 * config/rs6000/rs6000.c (print_operand): Remove extra space.
9417 (altivec_expand_unop_builtin): Fix thinko.
9418 (altivec_expand_binop_builtin): Same.
9419 (altivec_expand_ternop_builtin): Same.
9420 (altivec_expand_builtin): Same.
c62f2db5 9421
b5235ba7
RH
94222002-01-07 Richard Henderson <rth@redhat.com>
9423
9424 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9425
7d8ac293
JM
94262002-01-07 Jason Merrill <jason@redhat.com>
9427
9428 * unwind-dw2.c (execute_cfa_program): Use < again.
9429
571a03b8
JJ
94302002-01-07 Jakub Jelinek <jakub@redhat.com>
9431
9432 * predict.c (combine_predictions_for_insn): Avoid division by zero.
9433
2e951384
JJ
94342002-01-07 Jakub Jelinek <jakub@redhat.com>
9435
9436 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9437 Don't allow -1 - x -> ~x simplifications in the first pass.
9438
20e26713
AH
94392002-01-07 Aldy Hernandez <aldyh@redhat.com>
9440
0d24f4d1
ZW
9441 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9442 arguments.
9443 (altivec_expand_binop_builtin): Same.
9444 (altivec_expand_unop_builtin): Same.
9445 (print_operand): Fix typo.
9446 (bdesc_1arg): Add vupk* variants.
20e26713 9447
0d24f4d1 9448 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 9449
0d24f4d1 9450 * rs6000.md: Add altivec_vupk* variants.
20e26713 9451
4dd57c18
JM
94522002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
9453
9454 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9455 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9456 and last update dates.
9457
0341c5d2
JJ
94582002-01-07 Janis Johnson <janis187@us.ibm.com>
9459
9460 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9461
c7f3e0b0
MM
94622002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
9463
9464 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9465 * config/avr/avr.h (CPP_SPEC): Likewise.
9466 (LINK_SPEC): Likewise.
9467 (CRT_BINUTILS_SPECS): Likewise.
9468 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9469 * doc/invoke.texi (AVR Options): Document them.
9470
6ba4d630
JH
9471Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
9472
9473 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
9474 LABEL_NUSES.
9475
6253d571
GS
94762002-01-07 Graham Stott <grahams@redhat.com>
9477
0d24f4d1
ZW
9478 * config/i386/i386.h: Update copyright date.
9479 (HALF_PIC_PTR): Add parenthesis.
9480 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
9481 (CONSTANT_ALIGNMENT): Add parenthesis.
9482 (DATA_ALIGNMENT): Likewise.
9483 (LOCAL_ALIGNMENT): Likewise.
9484 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
9485 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
9486 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
9487 (HARD_REGNO_NREGS): Add paranethesis.
9488 (VALID_SSE_REG_MODE): Whitespace.
9489 (VALID_MMX_REG_MODE): Whitespace.
9490 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
9491 (ix86_hard_regno_mode_ok): Add parenthesis.
9492 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
9493 (RETURN_IN_MEMORY): Whitespace.
9494 (N_REG_CLASSES): Add parenthesis.
9495 (INTEGER_CLASS_P): Add parenthesis and wrap.
9496 (FLOAT_CLASS_P): Likewise.
9497 (SSE_CLASS_P): Likewise.
9498 (MMX_CLASS_P): Likewise.
9499 (MAYBE_INTEGER_CLASS_P): Likewise.
9500 (MAYBE_FLOAT_CLASS_P): Likewise.
9501 (MAYBE_SSE_CLASS_P): Likewise.
9502 (MAYBE_MMX_CLASS_P): Likewise.
9503 (Q_CLASS_P): Likewise.
9504 (GENERAL_REGNO_P): Uppercase macro parameter.
9505 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
9506 (FP_REGNO_P): Likewise.
9507 (ANY_FP_REGNO_P): Uppercase macro parameter.
9508 (SSE_REGNO_P): Likewise.
9509 (SSE_REGNO): Likewise.
9510 (SSE_REG_P): Likewise.
9511 (SSE_FLOAT_MODE_P): Likewise.
9512 (MMX_REGNO_P): Likewise.
9513 (MMX_REG_P):Likewise.
9514 (STACK_REG_P): Likewise.
9515 (NON_STACK_REG_P): Likewise.
9516 (STACK_TOP_P): Likewise.
9517 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
9518 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
9519 (SECONDARY_MEMORY_NEEDED): Likewise.
9520 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
9521 (MD_ASM_CLOBBERS): Whitespace and wrap.
9522 (MUST_PASS_IN_STACK): Whitespace and wrap.
9523 (RETURN_POPS_ARGS): Add parenthesis.
9524 (INIT_CUMULATIVE_ARGS): Likewise.
9525 (FUNCTION_ARG): Likewise.
9526 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
9527 (SETUP_INCOMING_VARARGS): Likewise.
9528 (BUILD_VA_LIST_TYPE): Add parenthesis.
9529 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
9530 parenthsis.
9531 (EXPAND_BUILTIN_VA_ARG): Likewise.
9532 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
9533 (INITIALIZE_TRAMPOLINE): Add parenthesis.
9534 (INITIAL_ELIMINATION_OFFSET): Likewise.
9535 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
9536 (REGNO_OK_FOR_BASE_P): Likewise.
9537 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
9538 (REGNO_OK_FOR_DIREG_P): Likewise.
9539 (REG_OK_FOR_INDEX_P): Whitespace.
9540 (REG_OK_FOR_BASE_P): Whitespace.
9541 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
9542 parenthesis.
9543 (FIND_BASE_TERM): Fix typo.
9544 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
9545 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
9546 (SYMBOLIC_CONST; Whitespace.
9547 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
9548 (ENCODE_SECTION_INFO): Whitespace.
9549 (FINALIZE_PIC): Remove do { ... } while (0).
9550 (PROMOTE_MODE): Wrap in do { ... } while (0).
9551 (CONST_COSTS): Whitespace.
9552 (RTX_COSTS): Add paramethesis, whitespace and wrap.
9553 (REGISTER_MOVE_COST): Add parenthesis.
9554 (MEMORY_MOVE_COST): Likewise.
9555 (EXTRA_CC_MODES): Whitespace.
9556 (SELECT_CC_MODE): Add parenthesis and whitespace.
9557 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
9558 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
9559 (ASM_OUTPUT_LABEL): Add paramethesis.
9560 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
9561 (ASM_OUTPUT_REG_POP): Likewise.
9562 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
9563 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 9564
07933f72
GS
9565 * config/i386/i386.c: Update copyright.
9566 (CHECK_STACK_LIMIT): Add parenthesis.
9567 (AT_BP): Uppercase macro parameter.
9568 (x86_64_int_parameter_registers): Constify.
9569 (x86_64_int_return_registers): Likewise.
9570 (ix86_compare_op0): Use rtx.
9571 (construct_container): Constify INTREG parameter.
9572 (function_arg): Use rtx.
9573
0b4d32c9
GS
9574 * diagnostic.h: Update copyright date.
9575 (output_buffer_state): Add parenthesis.
9576 (output_buffer_format_args): Likewise.
9577
6253d571
GS
9578 * combine.c (combine_instructions): Replace XEXP (links, 0)
9579 with link.
9580
68f3f6f1
L
95812002-01-06 H.J. Lu <hjl@gnu.org>
9582
9583 * cfgcleanup.c (thread_jump): Fix 2 typos.
9584
95852002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 9586
0d24f4d1 9587 * config.gcc: Add support for --enable-altivec.
480f7f3a 9588
13b8c631
CR
95892002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9590
9591 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
9592
58ad89b1
JJ
95932002-01-06 Jakub Jelinek <jakub@redhat.com>
9594
9595 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
9596 __objc_class_name_*.
9597
e403b4bc
CR
95982002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9599
9600 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
9601
e41c7831
RH
96022002-01-06 Richard Henderson <rth@redhat.com>
9603
9604 * reorg.c (emit_delay_sequence): Remove death notes, not merely
9605 nop them out. Increment label reference count for REG_LABEL.
9606 (fill_slots_from_thread): Frob label reference count around
9607 delete_related_insns.
9608
3b3b1e32
RH
96092002-01-05 Richard Henderson <rth@redhat.com>
9610
9611 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
9612 jump threading.
9613
c28abdf0
RH
96142002-01-05 Richard Henderson <rth@redhat.com>
9615
9616 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
9617 * integrate.c (output_inline_function): Likewise.
9618 * toplev.c (rest_of_compilation): Do it here instead. Move call
9619 to remove_unnecessary_notes after emitting abstract instance.
9620 Force an emitted nested function to have its parent emited as well.
9621 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
9622 for null.
9623 (rtl_for_decl_location): Do not look at reload data structures
9624 before reload has run.
9625
c4f2c499
KH
96262002-01-05 Kazu Hirata <kazu@hxi.com>
9627
9628 * cse.c: Fix formatting.
9629 * dwarf2asm.c: Likewise.
9630 * dwarf2out.c: Likewise.
9631 * explow.c: Likewise.
9632 * expmed.c: Likewise.
9633 * function.c: Likewise.
9634 * gcov.c: Likewise.
9635 * gencheck.c: Likewise.
9636 * genrecog.c: Likewise.
9637 * ggc-common.c: Likewise.
9638 * ggc-page.c: Likewise.
9639 * global.c: Likewise.
9640
cf0d9408
KH
96412002-01-05 Kazu Hirata <kazu@hxi.com>
9642
9643 * combine.c: Fix formatting.
9644
bedca03a
CR
96452002-01-05 Craig Rodrigues <crodrigu@bbn.com>
9646
9647 PR middle-end/1557
9648 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
9649
0134bf2d
DE
96502002-01-05 David Edelsohn <edelsohn@gnu.org>
9651
9652 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
9653 as 1 for __powerpc64__ as well.
9654
9655 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
9656
9657 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
9658 return it.
9659
9ca88d5a
DB
96602002-01-05 Daniel Berlin <dan@dberlin.org>
9661
9662 * lcm.c: Revert change, due to performance regression it causes on
9663 SPEC because it's slightly more conservative (sigh, I hate
9664 edge-based LCM).
0d24f4d1 9665
1c570418
JH
9666Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
9667
9668 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
9669
d83bb9f7
NB
96702002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
9671
9672 * doc/cppinternals.texi: Update.
9673
3e0f61ac
HPN
96742002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
9675
9676 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
9677 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
9678 negatives.
9679 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
9680 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
9681 kludge for pre-october-14th mmix versions to handle new-found bug
9682 with PUSHJ/PUSHGO and the register stack.
9683 * config/mmix/mmix.h (struct machine_function): Rename member
9684 has_call_value_without_parameters to has_call_without_parameters.
9685 All referers changed.
9686 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
9687 TARGET_MASK_BRANCH_PREDICT): New macros.
9688 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
9689 -mno-reg-stack-fill-bug-workaround.
9690 * config/mmix/mmix.md ("call"): Set struct machine member
9691 has_call_without_parameters.
9692
4deaa2f8
JH
9693Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
9694
9695 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
9696
9f16e871
JH
9697Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
9698
9699 * cfgcleanup.c: Include tm_p.h
9700 (mark_effect): Fix handling of hard register; fix handling of SET
9701
96eb1157
KH
97022002-01-04 Kazu Hirata <kazu@hxi.com>
9703
9704 * config/h8300/h8300.md (anonymous patterns): Check that
9705 operands are registers before using REGNO on them.
9706
48180d68
RM
97072002-01-03 Roland McGrath <roland@frob.com>
9708
9709 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
9710
b0832fe1
JJ
97112002-01-04 Jakub Jelinek <jakub@redhat.com>
9712
9713 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
9714 * c-common.h (genrtl_expr_stmt_value): Likewise.
9715 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
9716 (expand_expr_stmt_value): Add maybe_last argument.
9717 Don't warn about statement with no effect if it is the last statement
9718 in expression statement.
9719 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
9720 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
9721 expand_expr_stmt_value.
9722 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
9723 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
9724 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
9725 as maybe_last to expand_expr_stmt_value.
9726
c1e14513
JL
9727Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
9728
0d24f4d1
ZW
9729 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
9730 be passed in, do not build it.
9731 (c_begin_if_stmt): New function.
9732 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9733 * c-common.h (c_expand_start_cond): Update prototype.
9734 (c_begin_if_stmt): Prototype new function.
9735 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9736 * c-parse.in (if_prefix): Use c_begin_if_stmt,
9737 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 9738
b6ec437a
WC
97392002-01-04 William Cohen <wcohen@redhat.com>
9740
9741 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
9742 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9743 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9744 * config/pa/som.h (ASM_FILE_START): Likewise.
9745
ead39bdf 97462002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
9747
9748 * lcm.c: Include df.h.
9749 Add available_transfer_function prototype.
9750 (compute_available): Rework to use iterative dataflow framework.
9751 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
9752 with bb_info in df.h
9753 (available_transfer_function): New function.
9754
9755 * Makefile.in (lcm.o): add df.h to dependencies.
9756
551cc6fd
RH
97572002-01-04 Richard Henderson <rth@redhat.com>
9758
9759 * config/alpha/alpha.c (some_operand): Accept HIGH.
9760 (input_operand): Likewise; accept simple references to globals.
9761 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
9762 (alpha_const_double_ok_for_letter_p): Likewise.
9763 (alpha_extra_constraint): Likewise.
9764 (alpha_preferred_reload_class): Likewise. Do not force
9765 symbolic constants to memory.
9766 (alpha_legitimate_address_p): Accept simple references
9767 to small_symbolic_operand.
9768 (alpha_legitimize_address): New arg scratch. Be prepared to be
9769 called when no_new_pseudos. Emit simple symbolic references.
9770 Split integers into low, high, and rest.
9771 (alpha_expand_mov): Use alpha_legitimize_address.
9772 (some_small_symbolic_mem_operand): New.
9773 (split_small_symbolic_mem_operand): New.
9774 * config/alpha/alpha-protos.h: Update.
9775 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
9776 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
9777 (EXTRA_CONSTRAINT): Likewise.
9778 (PREFERRED_RELOAD_CLASS): Likewise.
9779 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
9780 (PREDICATE_CODES): Update.
9781 * config/alpha/alpha.md: New post-reload splitters to convert
9782 simplfied symbolic operands to the form that references $29.
9783 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
9784 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
9785
1eaea054
RH
97862002-01-03 Richard Henderson <rth@redhat.com>
9787
9788 * local-alloc.c (function_invariant_p): Update commentary.
9789
c4cc12b7
L
97902002-01-04 H.J. Lu <hjl@gnu.org>
9791
9792 * toplev.c (rest_of_compilation): Fix a typo when calling
9793 cleanup_cfg.
9794
173bf5be
KH
97952002-01-03 Kazu Hirata <kazu@hxi.com>
9796
9797 * c-common.c: Fix formatting.
9798 * diagnostic.c: Likewise.
9799 * doloop.c: Likewise.
9800 * dwarf2out.c: Likewise.
9801
187462ac
KH
98022002-01-03 Kazu Hirata <kazu@hxi.com>
9803
9804 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
9805 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
9806
5d8ebbd8
NB
98072002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9808
9809 * cpperror.c: Update comments and copyright.
9810 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
9811 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
9812
518c1311
JDA
98132002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9814
9815 * collect2.c (main): Use strcmp when testing for "-shared".
9816
d15a58c0
NB
98172002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9818
9819 * cppmacro.c: Don't include intl.h. Update comments.
9820 (new_number_token): Allocate enough buffer for 64-bit unsigned
9821 integers; update prototype.
9822 * cppmain.c: Update comments.
9823
70f4f91c
WC
98242002-01-03 William Cohen <wcohen@redhat.com>
9825
9826 * function.h (struct function): Add profile.
9827 (current_function_profile): New.
9828 doc/extend.texi: Update documentation.
9829 * final.c (final_start_function): Use current_function_profile
9830 instead of profile_flag.
9831 (profile_after_prologue): Likewise.
9832 * function.c (expand_function_start): Likewise.
9833 (expand_function_start): Likewise.
c4cc12b7 9834 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
9835 (alpha_does_function_need_gp): Likewise.
9836 (alpha_expand_prologue): Likewise.
9837 * config/arm/arm.c (arm_expand_prologue): Likewise.
9838 thumb_expand_prologue: Likewise.
9839 * config/d30v/d30v.c (d30v_stack_info): Likewise.
9840 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
9841 (fr30_expand_prologue): Likewise.
9842 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
9843 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
9844 * config/i386/i386.h (FINALIZE_PIC): Likewise.
9845 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
9846 * config/i960/i960.c (i960_output_function_prologue): Likewise.
9847 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
9848 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
9849 (m32r_expand_prologue): Likewise.
9850 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
9851 (m88k_expand_prologue): Likewise.
9852 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
9853 * config/mips/mips.c (compute_frame_size): Likewise.
9854 (mips_expand_prologue): Likewise.
9855 (mips_can_use_return_insn): Likewise.
9856 * config/pa/elf.h (ASM_FILE_START): Likewise.
9857 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9858 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9859 * config/pa/som.h (ASM_FILE_START): Likewise.
9860 * config/romp/romp.c (romp_using_r14): Likewise.
9861 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
9862 (rs6000_stack_info): Likewise.
9863 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 9864 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
9865 * config/v850/v850.c (compute_register_save_size): Likewise.
9866
cb1ac742
JJ
98672002-01-03 Jakub Jelinek <jakub@redhat.com>
9868
9869 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
9870 gen_lowpart_common fails, use gen_lowpart_SUBREG.
9871
61d951df 98722002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 9873
61d951df
TC
9874 * darwin.c (machopic_output_possible_stub_label): Don't generate
9875 stub routines for pseudo-stubs which we've just defined.
9876
505ddab6
KH
98772002-01-03 Kazu Hirata <kazu@hxi.com>
9878
9879 * builtins.c: Fix formatting.
9880 * c-typeck.c: Likewise.
9881 * combine.c: Likewise.
9882 * expr.c: Likewise.
9883 * loop.c: Likewise.
9884
b7e30d8a
AS
98852002-01-03 Andreas Schwab <schwab@suse.de>
9886
9887 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
9888 and return true if _cpp_push_next_buffer pushed a new include
9889 file.
9890 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
9891 _cpp_pop_file_buffer did not push a new file.
9892 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
9893
ff81832f
EC
98942002-01-02 Eric Christopher <echristo@redhat.com>
9895
9896 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
9897 FIND_REG_INC_NOTE call. Update copyright.
9898 * loop.c (canonicalize_condition): Ditto.
9899 * reorg.c (delete_scheduled_jump): Ditto.
9900
8e42ace1
KH
99012002-01-03 Kazu Hirata <kazu@hxi.com>
9902
9903 * gcse.c: Fix formatting.
9904
fb2bf631
GS
99052002-01-03 Graham Stott <grahams@redhat.com>
9906
9907 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
9908 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 9909 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
9910
9911 * system.h: Move forward defs for struct tags rtx_def, union_tree,
9912 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 9913 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
9914
99152002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
9916
9917 * tree.h: Update copyright date.
9918 (IS_EXPR_CODE_CLASS): Add parenthesis.
9919 (TREE_SET_CODE): Add whitespace.
9920 (TREE_CHECK): Add parenthesis.
9921 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
9922 (CST_OR_CONSTRUCTOR_CHECK):
9923 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
9924 (TREE_SYMBOL_REFERENCED): Whitespace.
9925 (INT_CST_LT): Likewise.
9926 (INT_CST_LT_UNSIGNED): Likewise.
9927 (tree_real_cst): Unwrap comment.
9928 (tree_string): Likewise.
9929 (tree_complex): Likewise.
9930 (IDENTIFIER_POINTER): correct cast.
9931 (SAVE_EXPR_CONTEXT): Whitespace.
9932 (EXPR_WFL_FILENAME_NODE): Likewise.
9933 (EXPR_WFL_FILENAME): Remove parenthesis.
9934 (DECL_ORIGIN): Add parenthesis.
9935 (DECL_FROM_INLINE): Use NULL_TREE.
9936 (build_int_2): Whitespace.
9937 (build_type_variant): Add parenthesis.
9938
9939 * gcc/jcf-parse.c: Update copyright date.
9940 (yyparse): Constify resource_filename.
9941
f52eda29
GS
99422002-01-03 Graham Stott <grahams@redhat.com>
9943
9944 * rtl.h: Update copyright date.
9945 (RTL_CHECK1): Wrap long line.
9946 (RTL_CHECK2): Likewise.
9947 (RTL_CHECKC1): Wrap long line and whitespace.
9948 (RTL_CHECKC2): Likewise.
9949 (XWINT): Whitespace.
9950 (XINT): Likewise.
9951 (XSTR): Likewise.
9952 (XEXP): Likewise.
9953 (XVEC): Likewise.
9954 (XMODE): Likewise.
9955 (XBITMAP): Likewise.
9956 (XTREE): Likewise.
9957 (XBBDEF): Likewise.
9958 (XTMPL): Likewise.
9959 (X0WINT): Likewise.
9960 (X0INT):Likewise.
9961 (X0UINT): Likewise.
9962 (X0STR): Likewise.
9963 (X0EXP): Likewise.
9964 (X0VEC): Likewise.
9965 (X0MODE): Likewise.
9966 (X0BITMAP): Likewise.
9967 (X0TREE): Likewise.
9968 (X0BBDEF): Likewise.
9969 (X0ADVFLAGS): Likewise.
9970 (X0CSELIB): Likewise.
9971 (X0MEMATTR): Likewise.
9972 (XCWINT): Likewise.
9973 (XCINT): Likewise.
9974 (XCUINT): Likewise.
9975 (XCSTR): Likewise.
9976 (XCEXP): Likewise.
9977 (XCVEC): Likewise.
9978 (XCMODE): Likewise.
9979 (XCBITMAP): Likewise.
9980 (XCTREE): Likewise.
9981 (XCBBDEF): Likewise.
9982 (XCADVFLAGS): Likewise.
9983 (XCCSELIB): Likewise.
9984 (XC2EXP): Likewise.
9985 (INSN_UID): Likewise.
9986 (PREV_INSN): Likewise.
9987 (PATTERN): Likewise.
9988 (INSN_CODE): Likewise.
9989 (PUT_REG_NOTE_KIND): Likewise.
9990 (CODE_LABEL_NUMBER): Likewise.
9991 (NOTE_SOURCE_FILE): Likewise.
9992 (NOTE_BLOCK): Likewise.
9993 (NOTE_EH_HANDLER): Likewise.
9994 (NOTE_RANGE_INFO): Likewise.
9995 (NOTE_LIVE_INFO): Likewise.
9996 (NOTE_BASIC_BLOCK): Likewise.
9997 (NOTE_EXPECTED_VALUE): Likewise.
9998 (NOTE_LINE_NUMBER): Likewise.
9999 (LABEL_NAME): Likewise.
10000 (LABEL_NUSES): Likewise.
10001 (LABEL_ALTERNATE_NAME): Likewise.
10002 (ADDRESSOF_DECL): Likewise.
10003 (JUMP_LABEL): Likewise.
10004 (LABEL_NEXTREF): Likewise.
10005 (REGNO): Likewise.
10006 (ORIGINAL_REGNO: Likewise.
10007 (HARD_REGISTER_NUM_P): Add parenthesis.
10008 (SUBREG_REG): Whitespace.
10009 (SUBREG_BYTE): Likewise.
10010 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10011 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10012 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10013 (ASM_OPERANDS_INPUT_VEC): Likewise.
10014 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10015 (ASM_OPERANDS_INPUT): Likewise.
10016 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10017 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10018 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10019 (ASM_OPERANDS_INPUT_MODE): Likewise.
10020 (ASM_OPERANDS_SOURCE_FILE): Likewise.
10021 (ASM_OPERANDS_SOURCE_LINE): Likewise.
10022 (MEM_SET_IN_STRUCT_P): Minor reformat.
10023 (TRAP_CONDITION): Whitespace.
10024 (TRAP_CODE): Likewise.
10025 (COND_EXEC_TEST): Likewise.
10026 (COND_EXEC_CODE): Likewise.
10027 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10028 (PHI_NODE_P): Add parenthesis.
10029 (plus_constant): Whitespace and add parenthesis.
10030
e03f5d43
KH
100312002-01-03 Kazu Hirata <kazu@hxi.com>
10032
10033 * config/avr/avr.c: Fix comment typos.
10034 * config/c4x/c4x.md: Likewise.
10035 * config/dsp16xx/dsp16xx.h: Likewise.
10036 * config/dsp16xx/dsp16xx.md: Likewise.
10037 * config/i386/i386.md: Likewise.
10038 * config/ia64/ia64.c: Likewise.
10039 * config/m32r/m32r.h: Likewise.
10040 * config/m68hc11/m68hc11.md: Likewise.
10041 * config/mmix/mmix.c: Likewise.
10042 * config/mn10200/mn10200.c: Likewise.
10043 * config/romp/romp.c: Likewise.
10044 * config/sh/sh.c: Likewise.
10045 * config/stormy16/stormy16.c: Likewise.
10046 * config/stormy16/stormy16.h: Likewise.
10047 * config/stormy16/stormy16.md: Likewise.
10048
97e300e9
GS
100492002-01-03 Graham Stott <grahams@redhat.com>
10050
10051 * loop.h: Update copyright date.
0d24f4d1
ZW
10052 (LOOP_MOVABLES): Fix typo.
10053 (LOOP_REGS): Likewise.
10054 (LOOP_IVS): Likewise.
ff81832f 10055
745b26b3
GS
100562002-01-03 Graham Stott <grahams@redhat.com>
10057
10058 * cppinit.c: Update copyright date.
10059 Don't include output.h
10060 * Makefile.in: Update copyright date.
10061 Update dependency.
10062
0a379b7a
CR
100632002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
10064
10065 PR c/5226
10066 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10067 (-pthread) Add to RS/6000 options.
10068
a8154559
KH
100692002-01-02 Kazu Hirata <kazu@hxi.com>
10070
10071 * except.c: Fix comment typos.
10072 * loop.c: Likewise.
10073 * varasm.c: Likewise.
10074 * doc/tm.texi: Fix a typo.
10075
e6ecc89b
JJ
100762002-01-02 Jakub Jelinek <jakub@redhat.com>
10077
10078 * c-typeck.c (output_init_element): Allow initializing static storage
10079 duration objects with compound literals.
10080
d1094b40
RH
100812002-01-02 Richard Henderson <rth@redhat.com>
10082
10083 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10084 after abusing it.
10085
0c5d8c82
KG
100862002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10087
5e65297b
KG
10088 * gcc.c (default_compilers): Const-ify.
10089 * mips-tdump.c (stab_names): Likewise.
10090 * mips-tfile.c (map_coff_types, map_coff_storage,
10091 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10092 pseudo_ops_t, pseudo_ops): Likewise.
10093 * protoize.c (default_include): Likewise
10094
0c5d8c82
KG
10095 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10096 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10097 Add array size in declaration.
10098 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10099 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10100 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10101 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10102 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10103 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10104 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10105 emtens, make_nan): Const-ify.
10106 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10107 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10108
817e13c4
JM
101092002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
10110
10111 * config.gcc (ia64-*-*): Set extra_headers.
10112 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
10113 * config/alpha/t-osf: Remove.
10114 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10115
98095e2b
DE
101162002-01-02 David Edelsohn <edelsohn@gnu.org>
10117
10118 * config/rs6000/t-aix43: Revert previous change.
10119
a4200657
JM
101202002-01-02 Jason Merrill <jason@redhat.com>
10121
10122 * c-decl.c (c_expand_body): Call outlining_inline_function when
10123 emitting an inline function out of line.
10124
54ba1f0d
RH
101252002-01-02 Richard Henderson <rth@redhat.com>
10126
10127 * dwarf2out.c (limbo_die_node): Add created_for member.
10128 (new_die): New argument created_for. Update all callers.
10129 (mark_limbo_die_list): New.
10130 (dwarf2out_init): Register limbo_die_list as a root.
10131 (dwarf2out_finish): Force insert limbo dies into their function
10132 context.
10133
323728aa
NS
101342002-01-02 Nathan Sidwell <nathan@codesourcery.com>
10135
10136 PR c++/5089
10137 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10138
aefc5826
KH
101392002-01-02 Kazu Hirata <kazu@hxi.com>
10140
10141 * config/h8300/fixunssfsi.c: Update copyright.
10142 Fix comment typos.
10143 Fix formatting.
10144 * config/h8300/h8300.c: Update copyright.
10145 Eliminate warnings.
10146
b1c9bc51
KH
101472002-01-02 Kazu Hirata <kazu@hxi.com>
10148
10149 * config/romp/romp.c: Fix comment formatting.
10150 * config/romp/romp.h: Likewise.
10151 * config/romp/romp.md: Likewise.
10152 * config/s390/s390.c: Likewise.
10153 * config/stormy16/stormy16.c: Likewise.
10154 * config/stormy16/stormy16.h: Likewise.
10155
1574ef13
AO
101562002-01-02 Alexandre Oliva <aoliva@redhat.com>
10157
10158 * c-common.h (genrtl_expr_stmt_value): Declare.
10159 * c-semantics.c (genrtl_goto_stmt): Redirect to...
10160 (genrtl_goto_stmt_value): ... this new function. Pass new
10161 argument down to expand_expr_stmt_value, taking
10162 TREE_ADDRESSABLE into account.
10163 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10164 STMT_EXPR as addressable, i.e., one whose result we want.
10165 * expr.c (expand_expr): Don't save expression statement value
10166 of labeled_blocks or loop_exprs.
10167 * stmt.c (expand_expr_stmt): Redirect to...
10168 (expand_expr_stmt_value): ... this new function. Use new
10169 argument to tell whether to save expression value.
10170 (expand_end_stmt_expr): Reset last_expr_type and
10171 last_expr_value if we don't have either.
10172 * tree-inline.c (declare_return_variable): Mark its use
10173 statement as addressable.
10174 * tree.h: Document new use of TREE_ADDRESSABLE.
10175 (expand_expr_stmt_value): Declare.
10176
252b88f7
TR
101772002-01-01 Tom Rix <trix@redhat.com>
10178
10179 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10180 rs6000_emit_allocate_stack.
10181
29f7a208
JM
101822002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
10183
10184 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10185 ${srcdir}/ginclude/ to every entry in extra_headers.
10186 * configure: Regenerate.
10187 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10188 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10189 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10190 * ginclude/proto.h: Rename to config/convex/proto.h.
10191
2cc2d4bb
RK
10192Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10193
10194 * attribs.c (handle_vector_size_attribute): Use host_integerp
10195 and tree_int_cst; remove warnings.
10196 * caller-save.c (insert_restore): Add cast to get rid of warning.
10197 (insert_save): Likewise.
10198 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10199 * regmove.c (find_matches): Add temporary var to kill a warning.
10200
f01c9bcd
DR
102012002-01-01 Douglas B Rupp <rupp@gnat.com>
10202
16b61764
DR
10203 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10204 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10205 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10206 (vms-dwarf2eh.o): Add Makefile rule.
10207 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10208 * config/alpha/vms-dwarf2eh.asm: New file.
10209
f01c9bcd
DR
10210 * gcc.c (delete_if_ordinary): Delete all versions.
10211
91312b81
HPN
102122002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
10213
10214 * config/mmix/mmix.md: Update FIXME to not mention
10215 define_constants.
10216 (MMIX_rJ_REGNUM): New define_constants constant.
10217 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10218 "*movdicc_real"): Adjust contraints formatting.
10219 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10220 for branch prediction.
10221 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10222 output template.
10223 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10224 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10225 number. Delete related FIXMEs.
10226 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10227 from number to MMIX_rJ_REGNUM.
10228 (TARGET_MASK_BRANCH_PREDICT): New.
10229 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10230 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
10231 value. Add -mbranch-predict and -mno-branch-predict.
10232 (TARGET_VERSION): Drop date.
10233 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10234 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10235 for finding out global symbols.
10236 (mmix_asm_output_labelref): Revert condition for global symbol.
10237 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10238 (mmix_print_operand_punct_valid_p): A '+' is valid.
10239
619acae7 10240See ChangeLog.6 for earlier changes.
This page took 1.372411 seconds and 5 git commands to generate.