Commit Graph

50468 Commits

Author SHA1 Message Date
David Billinghurst
b5706132c3 re PR fortran/10965 (g77 compiles illegal code in testsuite)
2003-06-03  David Billinghurst (David.Billinghurst@riotinto.com)

	PR fortran/10965
	* g77.f-torture/compile/20000601-2.f: Fix non-standard code.

From-SVN: r67349
2003-06-03 00:10:35 +00:00
Mark Mitchell
5a9f05f2ea scanasm.exp (dg-scan): New function, factored out of ...
* lib/scanasm.exp (dg-scan): New function, factored out of ...
	(scan-assembler): ... here.  Use dg-scan.
	(scan-assembler-not): Likewise.
	(scan-file): New function.
	(scan-file-not): Likewise.
	* gcc.dg/cpp/19990228-1.c: Use scan-file and/or scan-file-not.
	* gcc.dg/cpp/_Pragma4.c: Likewise.
	* gcc.dg/cpp/_Pragma5.c: Likewise.
	* gcc.dg/cpp/avoidpaste1.c: Likewise.
	* gcc.dg/cpp/avoidpaste2.c: Likewise.
	* gcc.dg/cpp/cmdlne-C2.c: Likewise.
	* gcc.dg/cpp/cmdlne-P.c: Likewise.
	* gcc.dg/cpp/cmdlne-dD-M.c: Likewise.
	* gcc.dg/cpp/cmdlne-dD-dM.c: Likewise.
	* gcc.dg/cpp/cmdlne-dI-M.c: Likewise.
	* gcc.dg/cpp/cmdlne-dM-M.c: Likewise.
	* gcc.dg/cpp/cmdlne-dM-dD.c: Likewise.
	* gcc.dg/cpp/cmdlne-dN-M.c: Likewise.
	* gcc.dg/cpp/cxxcom1.c: Likewise.
	* gcc.dg/cpp/line1.c: Likewise.
	* gcc.dg/cpp/maccom1.c: Likewise.
	* gcc.dg/cpp/maccom2.c: Likewise.
	* gcc.dg/cpp/maccom3.c: Likewise.
	* gcc.dg/cpp/maccom4.c: Likewise.
	* gcc.dg/cpp/maccom5.c: Likewise.
	* gcc.dg/cpp/maccom6.c: Likewise.
	* gcc.dg/cpp/multiline.c: Likewise.
	* gcc.dg/cpp/spacing1.c: Likewise.
	* gcc.dg/cpp/spacing2.c: Likewise.
	* gcc.dg/cpp/trad/cmdlne-C2.c: Likewise.
	* gcc.dg/cpp/trad/maccom1.c: Likewise.
	* gcc.dg/cpp/trad/maccom2.c: Likewise.
	* gcc.dg/cpp/trad/maccom3.c: Likewise.
	* gcc.dg/cpp/trad/maccom4.c: Likewise.
	* gcc.dg/cpp/trad/maccom6.c: Likewise.
	* gcc.dg/cpp/cxxcom2.c: Likewise.
	* gcc.dg/cpp/cxxcom2.h: New file.

From-SVN: r67347
2003-06-02 19:21:15 +00:00
Richard Sandiford
245115a4b4 Revert accidental change to mips_output_move.
From-SVN: r67346
2003-06-02 19:13:41 +00:00
Andrew Pinski
159ca3a3a4 re PR libstdc++/9815 (atomicity.h - fails to compile with -O3 -masm=intel)
2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

	PR libstdc++/9815
	* config/cpu/i386/atomicity.h (__exchange_and_add): add intel
	asm case to asm.
	* config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
	(__atomic_add): likewise.

From-SVN: r67343
2003-06-02 18:38:32 +00:00
Paolo Carlini
62929dd980 sstream.tcc (pbackfail): Minor clean up and reformatting, consistent with basic_filebuf::pbackfail.
2003-06-02  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/sstream.tcc (pbackfail): Minor clean up and
	reformatting, consistent with basic_filebuf::pbackfail.

From-SVN: r67342
2003-06-02 18:24:30 +00:00
Richard Kreckel
cc9c608f08 re PR libstdc++/11062 (Please avoid __attribute__ ((unused)))
2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>

	PR libstdc++/11062
	* config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
	__attribute__ ((__unused__)).
	* config/os/aix/atomicity.h:  Likewise.

From-SVN: r67340
2003-06-02 18:03:23 +00:00
Paolo Carlini
b166bded9e re PR libstdc++/9761 (filebuf::pbackfail discards previously put back characters)
2003-06-02  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/9761
	* include/bits/fstream.tcc (pbackfail): If the pback buffer
	is already active don't try to store in it a second char.
	* testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.

	* include/bits/fstream.tcc (pbackfail): Add unbuffered bits.

From-SVN: r67337
2003-06-02 16:46:28 +00:00
Paolo Carlini
f275a768ab 3.cc: Tweak line spacing.
2003-06-02  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
	line spacing.

From-SVN: r67336
2003-06-02 15:53:14 +00:00
Nick Clifton
4d49ef0cc3 remove addition to ARM configure accidentally added with m32r commit
From-SVN: r67335
2003-06-02 15:40:43 +00:00
Paolo Carlini
ccb50b8111 std_fstream.h (_M_destroy_pback): Use _M_in_beg instead of unnecessarily taking the address of _M_pback.
2003-06-02  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
	instead of unnecessarily taking the address of _M_pback.
	(xsgetn): Simplify slightly for a single char pback buffer.

2003-06-02  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/sstream.tcc (seekoff): Remove four unnecessary
	variables and two 'if', clean up.

2003-06-02  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/sstream.tcc (seekpos): Test against _M_out_lim
	not _M_out_end, since the former actually points to the string
	end (vs buffer end).
	* testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.

From-SVN: r67334
2003-06-02 15:36:24 +00:00
Mark Mitchell
2a9e3b720c truefalse.cpp: Move it to ...
* gcc.dg/cpp/truefalse.cpp: Move it to ...
	* g++.dg/cpp/truefalse.C: Here.
	* gcc.dg/cpp/cpp.exp: Remove scanning of ".cpp" files.

From-SVN: r67333
2003-06-02 15:25:50 +00:00
Roger Sayle
4c2da7f2a7 emit-rtl.c (gen_complex_constant_part): Remove unnecessary test of TREE_CONSTANT_POOL_ADDRESS_P.
* emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
	test of TREE_CONSTANT_POOL_ADDRESS_P.

Co-Authored-By: Zack Weinberg <zack@codesourcery.com>

From-SVN: r67331
2003-06-02 14:19:24 +00:00
Kaveh R. Ghazi
e91e4f6cee mips.c: Don't include output.h twice.
* mips.c: Don't include output.h twice.
	* stormy16.c: Likewise.
	* xtensa.c: Likewise.
	* output.h: Protect against multiple inclusion.

From-SVN: r67330
2003-06-02 14:15:15 +00:00
J"orn Rennecke
b38a52448f sh.h (OLD_ARG_MODE): New macro.
* sh.h (OLD_ARG_MODE): New macro.
	(FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
	(FUNCTION_ARG_1): Break out of:
	(FUNCTION_ARG).  Use OLD_ARG_MODE.

From-SVN: r67329
2003-06-02 15:04:56 +01:00
Nick Clifton
37ec8b7a07 Add support multilib parts for m32rx processor.
From-SVN: r67328
2003-06-02 12:11:49 +00:00
Kazuhiro Inaoka
250315f71c Add support multilib parts for m32rx processor.
From-SVN: r67327
2003-06-02 11:48:21 +00:00
Kaveh R. Ghazi
e7aba4cdb2 Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
* Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
	(mostlyclean): Delete c-options.c and c-options.h.

From-SVN: r67326
2003-06-02 11:41:51 +00:00
Neil Booth
c83857ff28 c-opts.c (CL_REJECT_NEGATIVE): New.
* c-opts.c (CL_REJECT_NEGATIVE): New.
	(c_common_decode_option): Update to use it.
	* c.opt: Update documentation; use RejectNegative.
	* opts.sh: Handle RejectNegative.

From-SVN: r67325
2003-06-02 05:48:30 +00:00
Ben Elliston
d48b7f2a3f * Shorten a line in my 2003-06-02 entry that was too long.
From-SVN: r67324
2003-06-02 15:15:17 +10:00
Zack Weinberg
c770ac2b84 ggc-page.c (init_ggc): Give better diagnostics on failure to open /dev/zero.
* ggc-page.c (init_ggc): Give better diagnostics on failure to
	open /dev/zero.
	* toplev.c (crash_signal): Reset handling for received signal
	to SIG_DFL.

From-SVN: r67323
2003-06-02 05:05:49 +00:00
Ben Elliston
103fc15d39 arm.c (arm_use_dfa_pipeline_interface): Declare.
2003-06-02  Ben Elliston  <bje@wasabisystems.com>

	* config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
	(TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already defined.
	(arm_use_dfa_pipeline_interface): Implement.
	* config/arm/arm.md (arm): New automaton.
	(write_buf): Remove function units; new cpu unit.
	(write_blockage): Remove function units; new cpu unit.
	(core): Remove function units; new cpu unit.
	(r_mem_f_wbuf): New instruction reservation.
	(store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
	(store1_ldsched, store2, store3, store4): Likewise.
	(load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
	(mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
	(multi_cycle, single_cycle): Likewise.
	* config/arm/fpa.md (armfp): New automaton.
	(fpa): Remove function units; new cpu unit.
	(fpa_mem): Remove function unit; new cpu unit.
	(fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
	(r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.

From-SVN: r67322
2003-06-02 13:53:54 +10:00
Kaveh R. Ghazi
3ae1d4c240 builtin-attrs.def (ATTR_ASM_FPRINTF): New.
* builtin-attrs.def (ATTR_ASM_FPRINTF): New.
	* c-format.c (enum format_type): Add asm_fprintf_format_type.
	(NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
	asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
	(format_types_orig): Renamed from format_types.  Add new data.
	(format_types): Declare as pointer.
	(handle_format_attribute): Move later in file so we have all
	necessary declarations.  Add section to capture HOST_WIDE_INT.
	* output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
	(asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.

From-SVN: r67319
2003-06-02 01:41:05 +00:00
GCC Administrator
069093f524 Daily bump.
From-SVN: r67317
2003-06-02 00:16:07 +00:00
Andreas Jaeger
8842a5e506 Forgot with last commit.
From-SVN: r67314
2003-06-01 22:11:27 +02:00
Andreas Jaeger
80eaf4158d tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
* doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
	ROUND_TYPE_SIZE_UNIT.

	* stor-layout.c (finalize_record_size): Remove usages of
	ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
	(finalize_type_size): Likewise.
	(layout_type): Likewise.

	* system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.

ada:
	* utils.c (finish_record_type): Remove usages of
	ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.

From-SVN: r67313
2003-06-01 21:44:22 +02:00
Andreas Jaeger
e094543212 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
From-SVN: r67312
2003-06-01 21:38:28 +02:00
Andreas Jaeger
fd66c4e31d * config/d30v/d30v.h: Remove text copied from the manual.
From-SVN: r67311
2003-06-01 21:32:15 +02:00
Roger Sayle
14ca333d38 emit-rtl.c (gen_lowpart_common): Handle interpreting integer constants as condition code values.
* emit-rtl.c (gen_lowpart_common): Handle interpreting integer
	constants as condition code values.

Co-Authored-By: Geoffrey Keating <geoffk@apple.com>
Co-Authored-By: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>

From-SVN: r67309
2003-06-01 18:59:17 +00:00
DJ Delorie
0cc261bc7b Oops, wrong date
From-SVN: r67308
2003-06-01 14:55:52 -04:00
DJ Delorie
a7f36da379 cppmacro.c (warn_of_redefinition): Handle cases where the two definitions have different numbers of tokens.
* cppmacro.c (warn_of_redefinition): Handle cases where the two
definitions have different numbers of tokens.

* gcc.dg/cpp/redef3.c: New file.

From-SVN: r67307
2003-06-01 14:55:15 -04:00
Andreas Jaeger
8e2b6930e1 gen-protos.c (main): Readd unused attribute for argc.
2003-06-01  Andreas Jaeger  <aj@suse.de>

	* gen-protos.c (main): Readd unused attribute for argc.

From-SVN: r67306
2003-06-01 20:48:38 +02:00
Neil Booth
e11a4ae53f Makefile.in (c-options.c, [...]): Parallel make safe.
* Makefile.in (c-options.c, c-options.h): Parallel make safe.
	* c.opt: End in blank line.
	* opts.sh: Take AWK from environment if available; use C locale.

From-SVN: r67305
2003-06-01 18:24:08 +00:00
Andreas Schwab
6fc9e67e61 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
From-SVN: r67304
2003-06-01 17:43:20 +00:00
Andreas Jaeger
fa10d367bd * gen-protos.c (main): Revert patch to check for argument.
From-SVN: r67303
2003-06-01 18:48:05 +02:00
Eric Botcazou
a3033f34cf re PR target/11044 ([x86] out of range loop instructions for FP code on K6)
PR target/11044
	* config/i386/i386.md (length attribute): Set length to 4
	for instructions of type "fcmp".

From-SVN: r67300
2003-06-01 16:10:09 +00:00
Andreas Jaeger
e25a75e6da toplev.c: Use ISO C90 prototypes.
* toplev.c: Use ISO C90 prototypes.

        * toplev.h: Use ISO C90 prototypes.

From-SVN: r67299
2003-06-01 18:04:55 +02:00
Andreas Jaeger
16610927c0 genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
* genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
        Remove #if 0'ed function simplify_by_alternatives.
        (optimize_attrs): Remove #if 0'ed code.
        Remove ^L.
        Use ISO C90 prototypes.
        (make_canonical): Remove #if 0'ed code.
        (convert_const_symbol_ref): Remove #if 0'ed function.

From-SVN: r67298
2003-06-01 18:02:11 +02:00
Andreas Jaeger
3d7aafde11 genrecog.c: Use ISO C90 prototypes.
* genrecog.c: Use ISO C90 prototypes.
	(nodes_identical): Correct declaration to match prototype.
	(maybe_both_true): Likewise.
	(merge_trees): Likewise.

	* genpeep.c (gen_peephole): Remove #if 0 code.
	Use ISO C90 prototypes.

	* genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
	Remove #if 0'ed function simplify_by_alternatives.
	(optimize_attrs): Remove #if 0'ed code.
	Remove ^L.
	Use ISO C90 prototypes.
	(make_canonical): Remove #if 0'ed code.
	(convert_const_symbol_ref): Remove #if 0'ed function.

	* gen-protos.c (main): Check for argument.

	* rtl.h: Use ISO C90 prototypes for functions from lists.c.

	* params.h: Use ISO C90 prototypes.
	* params.c: Likewise.
	* intl.c: Likewise.
	* intl.h: Likewise.
	* lists.c: Likewise.
	* errors.c: Likewise.
	* errors.h: Likewise.
	* gencodes.c: Likewise.
	* genpreds.c: Likewise.
	* genattr.c: Likewise.
	* gen-protos.c: Likewise.
	* genflags.c: Likewise
	* genconditions.c: Likewise.
	* genautomata.c: Likewise.
	* gencheck.c: Likewise.
	* genconfig.c: Likewise.
	* genconstants.c: Likewise.
	* genemit.c: Likewise.
	* genextract.c: Likewise.
	* gengenrtl.c: Likewise.
	* gengtype.c: Likewise.
	* gengtype.h: Likewise.
	* genopinit.c: Likewise.
	* genoutput.c: Likewise.
	* gensupport.c: Likewise.
	* gensupport.h: Likewise.

From-SVN: r67296
2003-06-01 17:59:10 +02:00
Bud Davis
a5a88a76ab ste.c (ffeste_R838): Handle ERROR_MARK.
2003-06-01  Bud Davis  <bdavis9659@comcast.net>

	* ste.c (ffeste_R838): Handle ERROR_MARK.
	(ffeste_R839): Ditto.

From-SVN: r67295
2003-06-01 15:45:05 +00:00
Andreas Jaeger
cef2bd3e84 sdbout.h: Use ISO C90 prototypes.
* sdbout.h: Use ISO C90 prototypes.

	* sdbout.c (CONTIN): Removed empty macro.
	(sdbout_one_type): Remove CONTIN usages.
	Remove ^Ls.
	(tag_of_ru_type): Remove #if 0'ed function.
	(sdbout_symbol): Remove #if 0'ed code.
	(sdbout_one_type): Remove a #if 1.
	(sdbout_one_type): Remove #if 0'ed code.
	(sdbout_init): Remove RMS_QUICK_HACK_1 code.
	Remove PARAMS, use ISO C90 prototypes for all functions.

From-SVN: r67294
2003-06-01 17:43:59 +02:00
Josef Zlomek
4319414517 * rtl.def (CONST_DOUBLE): Update comment.
From-SVN: r67293
2003-06-01 14:42:42 +00:00
Neil Booth
cea8d8164c * opts.sh: Remove path from sort.
From-SVN: r67291
2003-06-01 13:19:50 +00:00
Aldy Hernandez
965f3913f4 add PR#
From-SVN: r67290
2003-06-01 11:36:25 +00:00
Aldy Hernandez
28636c6e0a rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require TARGET_SPE for SPE_VECTOR_MODE.
2003-06-01  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
        TARGET_SPE for SPE_VECTOR_MODE.

From-SVN: r67289
2003-06-01 11:35:45 +00:00
Andreas Jaeger
e90c9dc046 lex.c (ffelex_file_fixed): Remove usage of REDUCE_CARD_SIZE_AFTER_BIGGY.
* lex.c (ffelex_file_fixed): Remove usage of
	REDUCE_CARD_SIZE_AFTER_BIGGY.

	* expr.c (ffeexpr_exprstack_push_operand_): Remove code depenend
	on WEIRD_NONFORTRAN_RULES.

	* com.c (ffecom_arg_ptr_to_expr): Remove
	PASS_HOLLERITH_BY_DESCRIPTOR dependend code.
	(ffecom_const_expr): Remove usage of NEWCOMMON.
	(ffecom_expand_let_stmt): Remove MOVE_EXPR.

From-SVN: r67287
2003-06-01 09:21:02 +02:00
GCC Administrator
1174a658cf Daily bump.
From-SVN: r67283
2003-06-01 00:16:06 +00:00
Aldy Hernandez
ddc9542b81 toplev.c (botch): Remove.
2003-05-31  Aldy Hernandez  <aldyh@redhat.com>

	* toplev.c (botch): Remove.
	(do_abort): Remove.
	(set_Wunused): Comment.
	(set_Wextra): Comment.
	Remove ^L's.
	(rest_of_compilation): Factor out common code into functions.
	(rest_of_handle_inlining): New.
	(rest_of_handle_ssa): New.
	(rest_of_handle_cse): New.
	(rest_of_handle_gcse): New.
	(rest_of_handle_loop_optimize): New.
	(rest_of_handle_jump_bypass): New.
	(rest_of_handle_sibling_calls): New.
	(rest_of_handle_null_pointer): New.
	(rest_of_handle_addresof): New.
	(rest_of_handle_flow): New.
	(rest_of_handle_branch_prob): New.
	(rest_of_handle_if_conversion): New.
	(rest_of_handle_tracer): New.
	(rest_of_handle_loop2): New.
	(rest_of_handle_cse2): New.
	(rest_of_handle_life): New.
	(rest_of_handle_combine): New.
	(rest_of_handle_if_after_combine): New.
	(rest_of_handle_regmove): New.
	(rest_of_handle_sched): New.
	(rest_of_handle_old_regalloc): New.
	(rest_of_handle_new_regalloc): New.
	(rest_of_handle_regrename): New.
	(rest_of_handle_reorder_blocks): New.
	(rest_of_handle_sched2): New.
	(rest_of_handle_new_regalloc): New.
	(rest_of_handle_old_regalloc): New.
	(rest_of_handle_regrename): New.
	(rest_of_handle_reorder_blocks): New.
	(rest_of_handle_stack_regs): New.
	(rest_of_handle_machine_reorg): New.
	(rest_of_handle_delay_slots): New.
	(rest_of_handle_final): New.

	* toplev.h (botch): Remove prototype.
	(do_abort): Same.

From-SVN: r67281
2003-05-31 23:46:41 +00:00
Wolfgang Bangerth
c487d8b607 Remove some references to GNATS. Reference to gnats.html still to be purged.
From-SVN: r67280
2003-05-31 17:09:11 -06:00
Diego Novillo
522801e76c class.c (dump_array): Call CONSTRUCTOR_ELTS to access the operand of a CONSTRUCTOR node.
* class.c (dump_array): Call CONSTRUCTOR_ELTS to access
	the operand of a CONSTRUCTOR node.

From-SVN: r67279
2003-05-31 18:32:42 -04:00
Neil Booth
fef3106c7b Makefile.in (c-opts.o, [...]): Update dependencies.
* Makefile.in (c-opts.o, c-options.h): Update dependencies.
	* c-opts.c: Include c-options.h and c-options.c.
	(CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
	Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
	(CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
	OPT, opt_comp): Remove.
	(missing_arg, c_common_init_options, c_common_decode_option,
	write_langs): Update for macro redefinitions and enumeration
	name changes.
	* c.opt, opts.sh: New files.
	* doc/passes.texi: Update.

From-SVN: r67278
2003-05-31 21:18:21 +00:00