Commit Graph

44646 Commits

Author SHA1 Message Date
Alexandre Oliva
8ea4b195de * libiberty/configure: Reverted unintended yesterday's check in.
From-SVN: r56361
2002-08-15 21:24:00 +00:00
Jakub Jelinek
2a2bfc59c0 typeof-1.c: New test.
* gcc.dg/typeof-1.c: New test.
* g++.dg/ext/typeof2.C: New test.

From-SVN: r56360
2002-08-15 21:17:16 +00:00
Alexandre Oliva
c01b9ec8eb parse.y (sizeof, [...]): New non-terminals to increment skip_evaluation.
* parse.y (sizeof, alignof, typeof): New non-terminals to
increment skip_evaluation.  Replace terminals with them and
decrement skip_evaluation at the end of rules using them.
* decl2.c (mark_used): Don't assemble_external if
skipping evaluation.

From-SVN: r56359
2002-08-15 21:16:52 +00:00
Alexandre Oliva
25587e40f5 c-tree.h (skip_evaluation): Move declaration...
* c-tree.h (skip_evaluation): Move declaration...
* c-common.h: ... here.
* c-typeck.c (build_external_ref): Don't assemble_external nor
mark a tree as used if skip_evaluation is set.
* c-parse.in (typeof): New non-terminal to set skip_evaluation
around TYPEOF.
(typespec_nonreserved_nonattr): Use it.

From-SVN: r56358
2002-08-15 21:16:23 +00:00
Phil Edwards
0053afb965 documentation.html: Update doxygen links for 3.2.
2002-08-15  Phil Edwards  <pme@gcc.gnu.org>

	* docs/html/documentation.html:  Update doxygen links for 3.2.

From-SVN: r56357
2002-08-15 20:19:11 +00:00
Douglas B Rupp
702ada3d94 dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
* dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
	(xcoff_debug_hooks): Update end_prologue.
	* debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
	* debug.h (end_prologue): Add file arg.
	(end_epilogue): Add line and file args.
	(dwarf2out_end_epilogue): Add line and file args.
	(vmsdbgout_after_prologue): Remove.
	* dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
	(dwarf2_debug_hooks): Update end_prologue.
	* dwarfout.c (dwarfout_end_epilogue): Add line and file args.
	(dwarfout_end_prologue): Add file arg.
	* final.c (vmsdbgout_after_prologue): Remove
	(final_end_function): Update end_epilogue call.
	(final_scan_insn): Update end_prologue call.
	* sdbout.c (sdbout_end_epilogue): Add line and file args.
	(sdbout_end_prologue): Add file arg.
	(sdb_debug_hooks): Update end_prologue.
	(sdb_begin_prologue): Update sdbout_end_prologue call.
	* vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
	vmsdbgout_end_function.
	(vmsdbgout_end_prologue): New function renamed from
	vmsdbgout_after_prologue. Call vmsdbgout_source_line.
	(vmsdbgout_end_function): New function.
	(vmsdbgout_end_epilogue): Add line and file args. Call
	vmsdbgout_source_line.
	(write_pclines): Write only valid line numbers.
	(write_srccorr): Don't write source correlation records if 0 lines.
	* xcoffout.c (xcoffout_end_epilogue): Add line and file args.

From-SVN: r56356
2002-08-15 19:59:29 +00:00
Steve Ellcey
cb94b1559a unwind-cxx.h (__cxa_exception): Change catchTemp type from void* to _Unwind_Ptr.
* libstdc++-v3/libsupc++/unwind-cxx.h (__cxa_exception):
	Change catchTemp type from void* to _Unwind_Ptr.
	* libstdc++-v3/libsupc++/eh_personality.cc (PERSONALITY_FUNCTION):
	Do not cast landing_pad or base_of_encoded_value to (void *).
	* libstdc++-v3/libsupc++/eh_throw.cc (__gxx_exception_cleanup):
	Accept _URC_NO_REASON as a valid reason code.

From-SVN: r56352
2002-08-15 18:05:41 +00:00
Steve Ellcey
9ef30f834e unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
* gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
	(_Unwind_Internal_Ptr): 32 bit version for use in
	read_encoded_value_with_base.
	* gcc/unwind-pe.h (read_encoded_value_with_base): Use
	_Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
	right size.

From-SVN: r56351
2002-08-15 18:01:30 +00:00
Kaveh R. Ghazi
f7043461db loop.c (scan_loop, [...]): Cast to avoid signed/unsigned warnings.
* loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
	signed/unsigned warnings.

	* regclass.c (init_reg_sets_1, choose_hard_reg_mode,
	record_reg_classes): Likewise.

	* reload.c (reload_inner_reg_of_subreg, push_reload,
	find_reloads_address_1): Likewise.

From-SVN: r56350
2002-08-15 17:44:10 +00:00
David Edelsohn
b4d330e163 rs6000.c (output_mi_thunk): Return to function section on TARGET_ELF.
* rs6000.c (output_mi_thunk): Return to function section on
        TARGET_ELF.

        * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.

From-SVN: r56348
2002-08-15 10:51:00 -04:00
Gabriel Dos Reis
e8fe46d4d6 *** empty log message ***
From-SVN: r56347
2002-08-15 11:42:51 +00:00
Nathan Sidwell
eac5ce6c93 re PR c++/7598 (offsetof broken)
cp:
	PR c++/7598
	* typeck.c (build_unary_op): Fold offsetof idiom. Fixes
	regression caused by my 2002-08-08 patch.
testsuite:
	* g++.dg/other/offsetof1.C: New test

From-SVN: r56346
2002-08-15 10:34:05 +00:00
Ulrich Weigand
61f02ff548 s390.c (legitimize_address): Optimize loading of large displacements.
* config/s390/s390.c (legitimize_address): Optimize loading
	of large displacements.

From-SVN: r56345
2002-08-15 09:55:31 +00:00
GCC Administrator
6848fc973f Daily bump.
From-SVN: r56344
2002-08-15 07:17:09 +00:00
Douglas B Rupp
1330f7d5b6 alpha-protos.h: Update.
* config/alpha/alpha-protos.h: Update.

	* config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
	(alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
	(alpha_linkage_symbol_p): New static function.
	(print_operand_address): Print linkage operand.

	(alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
	variables.
	(reloc_kind): New enum.
	(struct alpha_funcs): New struct.
	(struct alpha_links): Add reloc_kind field. Rename links_kind field.

	(alpha_need_linkage): Rewrite.
	(alpha_use_linkage): New global function.
	(alpha_write_linkage): Rewrite and make static.
	(alpha_write_one_linkage): Rewrite

	(alpha_start_function): Remove procedure descriptor output.
	(alpha_end_function): Write linkages at end of each function.

	* config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
	(call_vms_1, call_value_vms_1): Rewrite.

	* config/alpha/vms.h (ASM_FILE_END): Remove.

From-SVN: r56338
2002-08-15 05:04:27 +00:00
Richard Henderson
d1f1cc6a0f ggc-page.c (RTL_SIZE): New.
* ggc-page.c (RTL_SIZE): New.
        (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
        * rtl.def (BARRIER, NOTE): Pad to 9 slots.

From-SVN: r56337
2002-08-14 18:03:43 -07:00
Richard Henderson
55ae907993 * gcc.dg/tls/diag-3.c: Fix expected message strings.
From-SVN: r56336
2002-08-14 17:16:11 -07:00
Richard Henderson
236261548b calls.c: Include target.h.
* calls.c: Include target.h.
        * Makefile.in (calls.o): Update.

        * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
        * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.

From-SVN: r56335
2002-08-14 17:07:55 -07:00
Richard Henderson
fd350d241f Makefile.in (LOOSE_WARN): Add -fno-common.
* Makefile.in (LOOSE_WARN): Add -fno-common.
        * c-common.h (constant_string_class_name): Add missing extern.

From-SVN: r56334
2002-08-14 17:00:56 -07:00
Neil Booth
182d89a3e9 re PR preprocessor/7358 (Changes to Sun's make Dependencies)
PR preprocessor/7358
	* c-opts.c (check_deps_environment_vars): Ignore main file
	for SUNPRO_DEPENDENCIES.
	* cppfiles.c (stack_include_file): Ignore main file if
	appropriate.
	* cpplib.h (struct cpp_options): New member in deps.
	* doc/cppenv.texi: Update.

From-SVN: r56333
2002-08-14 22:34:50 +00:00
Neil Booth
8bfb14674d re PR preprocessor/7526 (cpp0 core dump when _Pragma implies #pragma dependency)
PR preprocessor/7526
	* cpplib.c (run_directive): Kludge so _Pragma dependency works.
testsuite:
	* gcc.dg/cpp/_Pragma3.c: New test.

From-SVN: r56332
2002-08-14 20:17:55 +00:00
Nathan Sidwell
4168506336 invoke.texi (-a): Remove documentation.
* doc/invoke.texi (-a): Remove documentation.
	(-fprofile-arcs): Remove reference to -a, -ax options.
	* doc/gcov.texi (Gcov Data Files): Data might be merged.

From-SVN: r56331
2002-08-14 20:06:12 +00:00
Jesse Rosenstock
093f02000f natPosixProcess.cc (cleanup): Added `path' argument.
2002-08-14  Jesse Rosenstock  <jmr@ugcs.caltech.edu>

	* java/lang/natPosixProcess.cc (cleanup): Added `path' argument.
	(startProcess): Allocate path for chdir in async-signal-safe way.

From-SVN: r56330
2002-08-14 19:53:54 +00:00
Gabriel Dos Reis
77893a23f9 Fix PR/7566
Fix PR/7566
        * c-semantics.c (genrtl_case_label): Don't (mis)use
        warning_with_decl.

From-SVN: r56329
2002-08-14 17:50:48 +00:00
Dale Johannesen
260f91c292 Insert memory clobbers before the code that pops variable arrays.
This prevents the scheduler from moving references to the arrays
below the stack pop.

From-SVN: r56328
2002-08-14 17:41:52 +00:00
Jonathan Wakely
615d009f6d messages.html: Use HTML entities for punctuation.
2002-08-14  Jonathan Wakely  <jw@kayari.org>

	* docs/html/22_locale/messages.html:  Use HTML entities for
	punctuation.

From-SVN: r56300
2002-08-14 17:29:19 +00:00
Neil Booth
cd79e2100b * c-opts.c (c_common_post_options): Correct test.
From-SVN: r56299
2002-08-14 17:19:28 +00:00
Kaveh R. Ghazi
3eb75a737b m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument order in call to fprintf.
* m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
	order in call to fprintf.

From-SVN: r56298
2002-08-14 16:25:36 +00:00
Rainer Orth
be3a0ce2ca * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
From-SVN: r56297
2002-08-14 16:12:33 +00:00
Ulrich Weigand
ccfc6cc8fa reload.c (find_reloads): Handle constraint letters marked by EXTRA_ADDRESS_CONSTRAINT and...
* reload.c (find_reloads): Handle constraint letters marked by
	EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
	(alternative_allows_memconst): Likewise.
	* reload1.c (maybe_fix_stack_asms): Likewise.
	* recog.c (asm_operand_ok, preprocess_constraints,
	constrain_operands): Likewise.
	* regclass.c (record_operand_costs, record_reg_classes): Likewise.
	* local-alloc.c (block_alloc, requires_inout): Likewise.
	* stmt.c (parse_output_constraint, parse_input_constraint): Likewise.

	* defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
	(EXTRA_ADDRESS_CONSTRAINT): Likewise.
	* doc/tm.texi: Document these two new target macros.

	* config/s390/s390.c (s390_expand_plus_operand): Accept already
	valid operands.
	(q_constraint): New function.
	config/s390/s390-protos.h (q_constraint): Declare it.
	config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
	(EXTRA_MEMORY_CONSTRAINT): New macro.

	* config/s390/s390.md: Throughout the machine description,
	replace all instances of the constraint combinations 'Qo'
	or 'oQ' with simply 'Q'.

From-SVN: r56291
2002-08-14 10:04:51 +00:00
Mark Mitchell
72c41e5adc * gennews (files): Add GCC 3.2 files.
From-SVN: r56287
2002-08-14 08:35:37 +00:00
Stephane Carrez
d6ee9f6f7c m68hc11.h (LINK_SPEC): Support -mrelax.
* config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
	* config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
	(LIBGCC2_CFLAGS): Compile with -mrelax.

From-SVN: r56285
2002-08-14 10:01:26 +02:00
Stephane Carrez
8a0b86f5aa invoke.texi: Document -minmax for 68HC12.
* doc/invoke.texi: Document -minmax for 68HC12.

	* config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
	("uminqi3"): Likewise.
	("uminhi3", "umaxhi3"): Likewise.

	* config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
	(TARGET_MIN_MAX): Define.
	(TARGET_SWITCHES): New option -minmax/-mnominmax.

From-SVN: r56284
2002-08-14 09:53:55 +02:00
Stephane Carrez
d6381f4e4f ChangeLog for Update libgcc to use -mlong-calls (HC12)
From-SVN: r56283
2002-08-14 09:52:02 +02:00
Stephane Carrez
084de18d20 t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
* config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
	(MULTILIB_OPTIONS): Must also generate for -mlong-calls.

	* config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
	(ret, declare, farsym): New gas macros.
	(__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
	___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
	and declare the symbol far when compiled with -mlong-calls.
	(__far_trampoline): New for 68HC12 trampoline code to invoke a
	far handler using jsr/bsr.

	* config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
	(jsr): New macro to transform a 'jsr' into a 'call'.

From-SVN: r56282
2002-08-14 09:32:52 +02:00
GCC Administrator
f8a3bda253 Daily bump.
From-SVN: r56281
2002-08-14 07:17:11 +00:00
Stephane Carrez
058edcdbdc invoke.texi: Document -mlong-calls for 68HC12.
* doc/invoke.texi: Document -mlong-calls for 68HC12.

	* config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
	-mlong-calls is specified.
	(ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
	assembler directives.
	(TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
	(TARGET_SWITCHES): Add -mlong-calls options.
	(current_function_far): Declare.

	* config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
	into account the page register saved on the stack.
	(m68hc11_override_options): Take into account -mlong-calls option.
	(m68hc11_asm_file_start): Put a mode for the ELF flags ABI.

	* config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
	if the function is going to be in 68HC12 banked memory (-mlong-calls).
	("*return_16bit"): Likewise.
	("*return_void"): Likewise.
	("call", "call_value"): Use call for a far function call.

From-SVN: r56275
2002-08-14 09:14:03 +02:00
Neil Booth
c79043f3f4 toplev.c (parse_options_and_default_flags): Don't call post_options here.
* toplev.c (parse_options_and_default_flags): Don't call
	post_options here.
	(general_init): Initialize GC, pools and tree hash here,
	instead of lang_independent_init.
	(lang_independent_init): Rename backend_init.
	(do_compile): Call post_options hook; exit early if there
	have been errors after switch processing.
	(toplev_main): Update.

From-SVN: r56274
2002-08-14 06:36:51 +00:00
Gabriel Dos Reis
6bf346d484 c-pretty-print.h: Guard against multiple inclusion.
* c-pretty-print.h: Guard against multiple inclusion.
        Robustify macros.
        (pp_c_attributes): Declare.
        * c-pretty-print.c (pp_c_attributes): New function.

From-SVN: r56273
2002-08-14 03:22:18 +00:00
Kaveh R. Ghazi
cbf2f4797d m68k.c (m68k_output_function_prologue, [...]): Delete versions for DPX2/MOTOROLA and NEWS/MOTOROLA.
* m68k.c (m68k_output_function_prologue,
	m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
	and NEWS/MOTOROLA.
	* genattrtab.c: Remove dpx2 comment.
	* libgcc2.c (__enable_execute_stack): Delete versions for
	NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
	sony_news/SYSTYPE_BSD.
	* longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
	__gmicro__, __i860__, __NeXT__ and __pyr__.
	* rtl.h: Remove convex comment.
	* varasm.c: Likewise.

From-SVN: r56272
2002-08-14 03:16:05 +00:00
Kaveh R. Ghazi
d3969c3407 c-opts.c (lang_flags): Const-ify.
* c-opts.c (lang_flags): Const-ify.
	* ra-build.c (undef_table): Likewise.
	* ra.c (eliminables): Likewise.

From-SVN: r56271
2002-08-14 03:09:14 +00:00
Alexandre Oliva
f5cc59a784 configure, configure: Rebuilt.
* boehm-gc/configure, libf2c/configure: Rebuilt.
* libffi/configure, libiberty/configure: Ditto.
* libjava/configure, libobjc/configure: Ditto.
* libstdc++-v3/configure, zlib/configure: Ditto.
Merged from binutils:
2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
From Steve Ellcey <sje@cup.hp.com>:
* libtool.m4 (HPUX_IA64_MODE): Set to 32 or 64 based on ABI.
(lt_cv_deplibs_check_method, lt_cv_file_magic_cmd,
lt_cv_file_magic_test_file): Set to appropriate values for HP-UX
IA64.
* ltcf-c.sh (archive_cmds, hardcode_*): Ditto.
* ltconfig (shlibpath_*, dynamic_linker, library_names_spec,
soname_spec, sys_lib_search_path_spec): Ditto.

From-SVN: r56270
2002-08-14 02:40:00 +00:00
Gabriel Dos Reis
df89f8e758 * tree.h: Guard against multiple inclusion.
From-SVN: r56269
2002-08-14 02:15:40 +00:00
Jesse Rosenstock
eb812b2c15 Fix for PR libgcj/7570 and PR libgcj/7578:
2002-08-13  Jesse Rosenstock  <jmr@ugcs.caltech.edu>

	Fix for PR libgcj/7570 and PR libgcj/7578:
	* java/lang/natPosixProcess.cc: Include java/io/File.h.
	(startProcess): Handle new `dir' argument.
	* java/lang/Win32Process.java (ConcreteProcess): Added `dir'
	argument.
	* java/lang/PosixProcess.java (ConcreteProcess): Added `dir'
	argument.
	(startProcess): Likewise.
	* java/lang/EcosProcess.java (ConcreteProcess): Added `dir'
	argument.
	* java/lang/Runtime.java (execInternal): Added `dir' argument.
	(exec): Don't create new environment if ENV==null.  Pass DIR to
	execInternal.
	* java/lang/natRuntime.cc: Include java/io/File.h.
	(execInternal): Added `dir' argument.

From-SVN: r56268
2002-08-14 01:07:59 +00:00
Hans-Peter Nilsson
cf87d551b0 reload1.c (reload_cse_simplify): Before checking REG_FUNCTION_VALUE_P, check REG_P.
* reload1.c (reload_cse_simplify): Before checking
	REG_FUNCTION_VALUE_P, check REG_P.

From-SVN: r56267
2002-08-14 00:49:08 +00:00
Geoffrey Keating
a43c89861e * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
From-SVN: r56266
2002-08-13 23:11:37 +00:00
Jesse Rosenstock
03496eb121 RandomAccessFile.java (skipBytes): Return number of bytes skipped.
2002-08-13  Jesse Rosenstock  <jmr@fulcrummicro.com>

	* java/io/RandomAccessFile.java (skipBytes): Return number of
	bytes skipped.

From-SVN: r56265
2002-08-13 23:10:11 +00:00
Jesse Rosenstock
ee1884cb9b For PR java/7483:
2002-08-13  Jesse Rosenstock  <jmr@fulcrummicro.com>

	For PR java/7483:
	* parse.y (build_assertion): Invert return from
	desiredAssertionStatus.

From-SVN: r56264
2002-08-13 22:29:23 +00:00
Neil Booth
2933735169 opts.c (c_common_init_options): Extra braces needed.
From-SVN: r56262
2002-08-13 19:30:33 +00:00
J"orn Rennecke
8202c8c4e9 sh.c (sh_init_builtins): Add PARAMS to declaration.
* sh.c (sh_init_builtins): Add PARAMS to declaration.
	(sh_media_init_builtins, sh_expand_builtin): Likewise.
	(sh_expand_unop_v2sf): Use PARAMS for variable declaration.
	(sh_expand_binop_v2sf): Likewise.
	* sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
	(sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
	(sh_initialize_trampoline): Likewise.

From-SVN: r56259
2002-08-13 17:52:27 +01:00