Commit Graph

42392 Commits

Author SHA1 Message Date
Tom Tromey
3d3707c1d5 For PR java/6314:
* jvspec.c (lang_specific_driver): Use --resource, not -R.  Also
	recognize `-fcompile-resource='.
	* gcj.texi (Invoking gcj): Use --resource, not -R.  Expanded text
	a bit.

From-SVN: r52690
2002-04-23 22:58:09 +00:00
Tom Tromey
50cb21547b * gcc.c: Added --resource. For PR java/6314.
From-SVN: r52689
2002-04-23 22:57:16 +00:00
Jason Merrill
736020b4a7 fstream.tcc (basic_filebuf::seekoff): Fix for output-only filebufs.
* include/bits/fstream.tcc (basic_filebuf::seekoff): Fix for
        output-only filebufs.
        * include/std/std_fstream.h (basic_filebuf::_M_set_indeterminate):
        Likewise.
        (basic_filebuf::_M_set_determinate): Likewise.

From-SVN: r52685
2002-04-23 17:56:10 -04:00
Jason Merrill
74c263af80 re PR libstdc++/6414 (g++ 3.1 tellg() regression within last week)
PR libstdc++/6414
        * include/bits/fstream.tcc (basic_filebuf::seekoff): Adjust return
        value properly in the trivial case.
        * testsuite/27_io/istream_seeks.cc (test04): Make sure that
        tellg() returns the right value after a read.

From-SVN: r52679
2002-04-23 17:01:22 -04:00
Jakub Jelinek
29cece2e5d parse.y (check_class_key): Allow KEY to be union/enum/struct/class node with attributes.
* parse.y (check_class_key): Allow KEY to be union/enum/struct/class
	node with attributes.

	* g++.dg/parse/attr1.C: New test.

From-SVN: r52678
2002-04-23 22:59:05 +02:00
Hans-Peter Nilsson
7e67bb8588 cpu_limits.h: New file.
* config/cpu/mmix/bits/cpu_limits.h: New file.
	* configure.target (CPULIMITSH): Use it.

From-SVN: r52674
2002-04-23 17:46:24 +00:00
David O'Brien
9566d1e9f2 Tweak my last entry.
From-SVN: r52672
2002-04-23 16:39:34 +00:00
David O'Brien
515387dcd9 g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
2002-04-23  David O'Brien  <obrien@FreeBSD.org>
	* cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
	* config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
	these libraries.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020422223253.A32678@redhat.com>

From-SVN: r52671
2002-04-23 16:39:03 +00:00
David O'Brien
271f61fb29 g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
2002-04-23  David O'Brien  <obrien@FreeBSD.org>
	* g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
	* config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
	these libraries.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020422223253.A32678@redhat.com>

From-SVN: r52667
2002-04-23 15:05:33 +00:00
David O'Brien
bdabbc80b9 freebsd.h (OBJECT_FORMAT_ELF): Define.
2002-04-23  David O'Brien  <obrien@FreeBSD.org>
	* config/freebsd.h(OBJECT_FORMAT_ELF): Define.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020422223325.B32678@redhat.com>

From-SVN: r52666
2002-04-23 14:57:55 +00:00
Philipp Thomas
7bbf788c04 Regenerate gcc.pot
From-SVN: r52665
2002-04-23 13:29:03 +00:00
Jan Hubicka
7441103929 i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug workaround.
* i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
	workaround.
	(ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
	(ix86_expand_clrstr): Fix typo.
	* loop.c (gen_load_of_final_value): New.
	(loop_givs_rescan, strength_reduce, check_dbra_loop):
	Use it.

From-SVN: r52664
2002-04-23 12:29:43 +00:00
Roger Sayle
1a887f860a builtins.c (builtin_memset_gen_str): New function.
2002-04-23  Roger Sayle  <roger@eyesopen.com>

	* builtins.c (builtin_memset_gen_str): New function.
	(expand_builtin_memset): Optimize the case of constant length, but
	unknown value.
testsuite:
	* gcc.c-torture/execute/string-opt-17.c: New test case.
	* gcc.c-torture/execute/memset-2.c: New test case.

From-SVN: r52662
2002-04-23 12:17:37 +02:00
Mark Mitchell
77adef8498 re PR c++/6256 (Seg fault for template friends in namespaces, regression from 2.95)
PR c++/6256:
	* pt.c (tsubst_friend_class): Handle templates with explicit
	nested names.

	PR c++/6331:
	* typeck.c (merge_types): Remember the cv-qualification of pointer
	types when merging them.

	PR c++/6256:
	* g++.dg/template/friend5.C: New test.

	PR c++/6331:
	* g++.dg/template/qual1.C: Likewise.

From-SVN: r52661
2002-04-23 08:37:23 +00:00
Aldy Hernandez
8d3441e009 altivec.h (vec_step): Remove extraneous parentheses.
2002-04-23  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/altivec.h (vec_step): Remove extraneous
        parentheses.
        (vec_ctu): Cast return.

From-SVN: r52657
2002-04-23 07:32:08 +00:00
Alan Modra
f6f315fe11 re PR target/6413 (PROFILE_HOOK label_no)
PR target/6413
	* function.h: (struct function): Add profile_label_no field.
	(current_function_profile_label_no): Define.
	* function.c: (profile_label_no): New static var.
	(expand_function_start): Increment it, and copy to
	current_function_profile_label_no.
	* output.h (profile_label_no): Delete.
	* final.c (profile_label_no): Delete.
	(profile_function): Use current_function_profile_label_no.
	(final_end_function): Don't increment profile_label_no here.
	* config/i386/i386.c (ix86_osf_output_function_prologue): Replace
	profile_label_no with current_function_profile_label_no.
	* config/pa/pa.c (current_function_number): Delete.
	(pa_output_function_prologue): Don't output profile label here.
	(hppa_profile_hook): Use label_no param rather than
	current_function_number.
	(FUNC_BEGIN_PROLOG_LABEL): Move to ..
	* config/pa/pa.h: .. here.
	(FUNCTION_PROFILER): Output profile label here.

From-SVN: r52656
2002-04-23 16:50:55 +09:30
GCC Administrator
878a19ebe2 Daily bump.
From-SVN: r52655
2002-04-23 07:17:20 +00:00
Jeff Sturm
e3c98562a4 Makefile.am (toolexeclib_LTLIBRARIES): Remove.
* Makefile.am (toolexeclib_LTLIBRARIES): Remove.
	(noinst_LTLIBRARIES): Add libgcjgc.la.

	* Makefile.in: Rebuild.

From-SVN: r52651
2002-04-23 03:37:27 +00:00
Eric Christopher
d239cdc00e mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert patch of 2002-04-09 due to binutils issues.
2002-04-22  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
	patch of 2002-04-09 due to binutils issues.
	(FUNCTION_ARG_REGNO_P): Ensure even numbered float register.

From-SVN: r52649
2002-04-23 02:06:02 +00:00
David O'Brien
d0d091ae08 encoding.c (MAX, [...]): #undef before defining.
2002-04-19  David O'Brien  <obrien@FreeBSD.org>
	* encoding.c (MAX, MIN, ROUNDING): #undef before defining.

Approved by:  David S. Miller <davem@redhat.com>
              Message-Id: <20020419.184825.67430590.davem@redhat.com>

From-SVN: r52648
2002-04-23 02:04:20 +00:00
Aldy Hernandez
04428ad4ac rs6000.md ("*movv4si_internal"): Change 'm' constraint to 'o' for m=r and r=m alternatives.
2002-04-22  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
        constraint to 'o' for m=r and r=m alternatives.
        ("*movv8hi_internal1"): Same.
        ("*movv16qi_internal1"): Same.
        ("*movv4sf_internal1"): Same.

From-SVN: r52646
2002-04-23 00:19:14 +00:00
Janis Johnson
2adc7f1284 rtl.h (RTX_FLAG): New macro.
* rtl.h (RTX_FLAG): New macro.
	* emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
	* final.c (alter_subreg): Use macro to access rtx flag.
	* integrate.c (copy_rtx_and_substitute): Use new access macro.
	* print-rtl.c (print_rtx): Use new access macro.

	* cse.c (insert): Check rtx code before accessing flag.

	* genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
	ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
	(attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
	convert_const_symbol_ref, make_canonical, make_alternative_compare,
	evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
	simplify_test_exp, optimize_attrs, simplify_by_exploding,
	find_and_mark_used_attributes, unmark_used_attributes,
	add_values_to_cover, simplify_with_current_value,
	simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
	copy_rtx_unchanging, main): Use new access macros.

From-SVN: r52645
2002-04-22 23:22:33 +00:00
Tom Rix
b7c89afe90 Generate constant for shift once.
From-SVN: r52644
2002-04-22 23:20:12 +00:00
Loren J. Rittle
6067f1feb2 * docs/html/17_intro/porting.html: Rebuilt.
From-SVN: r52643
2002-04-22 22:50:40 +00:00
Loren J. Rittle
c5ac5edb61 * docs/html/17_intro/porting.texi (_GLIBCPP_AVOID_FSEEK): Remove.
From-SVN: r52642
2002-04-22 22:46:34 +00:00
Zack Weinberg
9340544b77 re PR c/6300 (sparc-sun-solaris2.7 gcc-3.1 C testsuite failure in gcc.dg/cpp/charconst.c)
* c-lex.c (lex_charconst): Call convert to get constant in
	proper type; don't just smash the type field.
	Fixes PR c/6300.

	* config.gcc: Add list of obsolete configurations.  Disallow
	building these without --enable-obsolete.
	* doc/install.texi: Document --enable-obsolete and obsoletion
	policy.  Mention obsoletion of individual targets in
	appropriate places.

From-SVN: r52639
2002-04-22 22:25:14 +00:00
Alexandre Petit-Bianco
920f81e7b8 re PR java/2791 (Bogus "class `foo' already defined ..." error from jc1)
* jcf-parse.c: (yyparse): Don't prepend "./" to relative
	paths. Fixes PR java/2791.

From-SVN: r52636
2002-04-22 20:34:19 +00:00
Jason Merrill
5066927d9e re PR libstdc++/4150 (catastrophic performance decrease in C++ code)
PR libstdc++/4150
        * include/std/std_streambuf.h (basic_streambuf::_M_set_indeterminate):
        Move to filebuf.
        (basic_streambuf::_M_set_determinate): Likewise.
        (basic_streambuf::_M_is_indeterminate): Likewise.
        * include/bits/std_fstream.h (basic_filebuf::_M_filepos): New
        non-static data member.
        (basic_filebuf::_M_underflow_common): New non-static member function.
        (basic_filebuf::_M_underflow, _M_uflow): Call it.
        (basic_filebuf::sync): Avoid useless seeking.
        (basic_filebuf::_M_set_indeterminate): Move here from streambuf.
        Set _M_filepos.
        (basic_filebuf::_M_set_determinate): Likewise.
        (basic_filebuf::_M_is_indeterminate): Likewise.
        * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow): Seek
        back to _M_out_beg if necessary.
        (basic_filebuf::seekoff): Likewise.
        (basic_filebuf::_M_underflow_common): Generalization of old
        underflow().  Don't seek back to _M_in_beg.
        * src/ios.cc: Lose _GLIBCPP_AVOID_FSEEK stuff.
        * config/os/solaris/solaris2.?/bits/os_defines.h: Likewise.
        * config/os/bsd/freebsd/bits/os_defines.h: Likewise.
        * config/os/mingw32/bits/os_defines.h: Likewise.
        * testsuite/27_io/filebuf_virtuals.cc (test05): Don't overspecify
        ungetc test.

From-SVN: r52634
2002-04-22 16:28:05 -04:00
Richard Henderson
f942d7a5df * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
From-SVN: r52633
2002-04-22 12:54:50 -07:00
Mark Mitchell
8ed8f73189 re PR fortran/6138 (Incorrect access of integer*1 variables on PA)
PR f/6138.
	* function.c (fixup_memory_subreg): Add promoted_mode parameter.
	(walk_fixup_memory_subreg): Likewise.
	(fixup_var_refs_insn): Adjust accordingly.
	(fixup_var_refs_1): Likewise.

From-SVN: r52631
2002-04-22 19:26:19 +00:00
Benjamin Kosnik
b2e4f4fda7 istream.tcc (istream::read): Fix.
2002-04-22  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/istream.tcc (istream::read): Fix.
	* testsuite/27_io/istream_unformatted.cc (main): Add.

From-SVN: r52628
2002-04-22 19:10:02 +00:00
Ulrich Weigand
232b0b45ca linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC, LIBPATH_ARCH64_SPEC): Define.
* config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
LIBPATH_ARCH64_SPEC): Define.
(EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
(STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
(LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
(LINK_ARCH64_SPEC): Add libpath_arch64 to search path.

From-SVN: r52627
2002-04-22 18:41:07 +00:00
Joel Sherrill
1b61552b8a gthr-rtems.h: Correct prototypes to remove warnings.
2002-04-22	Joel Sherrill <joel@OARcorp.com>

	* gthr-rtems.h: Correct prototypes to remove warnings.

From-SVN: r52626
2002-04-22 18:26:01 +00:00
Richard Henderson
0fe854a7e0 alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
* alias.c (canon_true_dependence): Special case (mem:blk (scratch)).

        * gcse.c (free_insn_expr_list_list): New.
        (clear_modify_mem_tables): Use it.  Fix bit set usage.
        (canon_list_insert): Use EXPR_LISTs for expressions.
        (record_last_mem_set_info): Factor BLOCK_NUM (insn).

From-SVN: r52624
2002-04-22 11:17:06 -07:00
Neil Booth
af0d16cdec cppfiles.c (_cpp_pop_file_buffer): Return void.
* cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
	file change and include code to _cpp_pop_buffer.
	* cpphash.h (struct pending_option): Predeclare.
	(struct cpp_reader): New member next_include_file.
	(_cpp_pop_file_buffer): Update.
	(_cpp_push_next_buffer): Update, rename.
	* cppinit.c (cpp_destroy): Free include chain and pending here.
	(cpp_finish_options): Simplify.
	(_cpp_push_next_buffer): Rename and clean up.
	* cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
	Clarify.
	* cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.

From-SVN: r52621
2002-04-22 17:48:02 +00:00
Zack Weinberg
74b273d68f 980707-1.c: Don't use isspace().
* gcc.c-torture/execute/980707-1.c: Don't use isspace().
	Include stdlib.h, not stdio.h or ctype.h.

From-SVN: r52619
2002-04-22 17:40:50 +00:00
Andrew Haley
a2761d6826 jcf-write.c (push_long_const): lo, hi: New variables.
2002-04-19  Andrew Haley  <aph@redhat.com>

        * jcf-write.c (push_long_const): lo, hi: New variables.
        Use rshift_double to extract the high part of a 64-bit long.
        Use WORD_TO_INT to extract the low part.

        * jcf-parse.c (get_constant): CONSTANT_Integer: Use an unsigned
        HOST_WIDE_INT for num.  Use JPOOL_UINT to get it.
        CONSTANT_Double: Use JPOOL_UINT to get both halve of a double.

From-SVN: r52618
2002-04-22 16:55:39 +00:00
Mark Mitchell
0a528c61ff * gcc_release (build_diffs): Remove reference to Chill.
From-SVN: r52614
2002-04-22 16:00:13 +00:00
Philipp Thomas
5c9c129397 Update turkish catalog
From-SVN: r52612
2002-04-22 14:16:46 +00:00
David S. Miller
4bf0144590 dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document magic instruction reading sequence.
2002-04-21  David S. Miller  <davem@redhat.com>

	* include/dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document
	magic instruction reading sequence.

From-SVN: r52609
2002-04-22 01:13:32 -07:00
GCC Administrator
f0cca0f605 Daily bump.
From-SVN: r52607
2002-04-22 07:16:59 +00:00
Aldy Hernandez
0d9185726f altivec.h (vec_xor): Add variant for both args being vector signed int.
2002-04-22  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/altivec.h (vec_xor): Add variant for both args
        being vector signed int.
        (vec_andc): Same.
        (vec_xor): Add variant for both args being vector signed char.
        Remove redundant variant.
        (vec_andc): Same.

From-SVN: r52602
2002-04-22 06:39:02 +00:00
David S. Miller
a61df6c727 [multiple changes]
2002-04-22  David S. Miller  <davem@redhat.com>

	* include/private/gcconfig.h: Hard-code STACKBOTTOM on
	64-bit SPARC Linux, the __libc_stack_end technique does
	not work in this case.

2002-04-22  Jeff Sturm  <jsturm@one-point.com>

	* gcconfig.h: Enable DYNAMIC_LOADING for all sparc-solaris ABIs.

From-SVN: r52601
2002-04-21 23:07:41 -07:00
David S. Miller
77e2c290ba sparc.md (set then compare DI mode peephole2): Fix compare mode in output RTL.
2002-04-21  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.md (set then compare DI mode peephole2): Fix
	compare mode in output RTL.

From-SVN: r52597
2002-04-21 18:25:11 -07:00
Hans-Peter Nilsson
bb03c71049 20020415-1.c: Expect warning for unsupported -fpic on cris-*-elf* and mmix-*-*.
* gcc.dg/20020415-1.c: Expect warning for unsupported -fpic on
	cris-*-elf* and mmix-*-*.
	* g77.f-torture/execute/io0.x: xfail for cris-*-elf.
	* g77.f-torture/execute/io1.x, g77.f-torture/execute/20001201.x,
	g77.f-torture/execute/6367.x, g77.f-torture/execute/u77-test.x:
	Ditto.
	* gcc.dg/wint_t-1.c: Mark excess errors for cris-*-elf.
	* gcc.dg/wchar_t-1.c: Ditto.

From-SVN: r52595
2002-04-22 01:19:06 +00:00
David Edelsohn
ee2ca2a22e rs6000.c (rs6000_override_options): Correct style and formatting of previous patch.
* config/rs6000/rs6000.c (rs6000_override_options): Correct
        style and formatting of previous patch.

From-SVN: r52593
2002-04-21 21:01:12 -04:00
Alan Modra
894bdff6f2 rs6000.c (rs6000_override_options): Always clear flag_pic for ABI_AIX.
* config/rs6000/rs6000.c (rs6000_override_options): Always clear
	flag_pic for ABI_AIX.

From-SVN: r52591
2002-04-22 09:51:52 +09:30
Hans-Peter Nilsson
5b3dc8155f cleanup1.C (C::C()): Initialize member c.
* g++.dg/opt/cleanup1.C (C::C()): Initialize member c.
	Clarify comment.

From-SVN: r52588
2002-04-21 20:32:48 +00:00
Neil Booth
562a5c27c2 cppexp.c (struct op, [...]): Replace U_CHAR with uchar.
* cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
	* cppfiles.c (read_include_file): Similarly.
	* cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
	uxstrdup ustrchr, ufputs): Similarly.
	* cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
	* cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
	cpp_ideq, parse_identifier, parse_number): Similarly.
	* cpplib.c (struct directive, dequote_string, D, run_directive,
	cpp_push_buffer): Similarly.
	* cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
	_cpp_create_definition, check_trad_stringification,
	cpp_macro_definition): Similarly.

From-SVN: r52587
2002-04-21 18:46:42 +00:00
Neil Booth
9ac3b1bec7 cppmacro.c (funlike_invocation_p): Don't step back over CPP_EOF.
* cppmacro.c (funlike_invocation_p): Don't step back over CPP_EOF.
testsuite:
	* gcc.dg/cpp/endif.h, gcc.dg/cpp/endif.c: New tests.

From-SVN: r52586
2002-04-21 16:17:55 +00:00