Commit Graph

32339 Commits

Author SHA1 Message Date
Neil Booth
ad2a084dbd c-lex.c: Move main_input_filename handling to FC_ENTER.
* c-lex.c: Move main_input_filename handling to FC_ENTER. Clean up.
        * cpperror.c (print_containing_files): Get right line number.
        (print_location): Output column of 1 if 0.
        * cppfiles.c (stack_include_file): cpp_push_buffer handles
        the callback.
        * cpphash.h (_cpp_do_file_change): No longer external.
        * cpplib.c (do_file_change): Now local to cpplib.c.
        (do_line): Fake a buffer stack for preprocessed files.
        (cpp_push_buffer): Create a file_change callback.  Handle faked
        buffers.
        (cpp_pop_buffer): Similarly.
        * cpplib.h: BUF_FAKE: New buffer type.
        * cppmain.c: Update to handle correct file renaming where a
        #line is the first line of the main file, and produce only
        the renamed file, not the original file, as output.

From-SVN: r38319
2000-12-17 00:13:54 +00:00
Michael Hayes
3b67042af8 * config/c4x/c4x.md: Remove redundant @s from output patterns.
From-SVN: r38318
2000-12-16 23:51:06 +00:00
Michael Hayes
9f416fac8f c4x.h (REGISTER_TARGET_PRAGMAS): Call c4x_init_pragma.
* config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Call c4x_init_pragma.

	* config/c4x/c4x-protos.h (c4x_init_pragma): New prototype.

	* config/c4x/c4x.c (c4x_init_pragma): New function.
	(c_lex_func): New variable.
	(c4x_parse_pragma): Use c_lex_func.

Co-Authored-By: Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

From-SVN: r38317
2000-12-16 23:41:44 +00:00
Michael Hayes
94eebed99a c4x.h (MD_INIT_BUILTINS): Add void_list_node argument to c4x_init_builtins.
* config/c4x/c4x.h (MD_INIT_BUILTINS): Add void_list_node argument
	  to c4x_init_builtins.

	* config/c4x/c4x-protos.h (c4x_init_builtins): Add tree argument.

	* config/c4x/c4x.c (c4x_init_builtins): Add tree argument.
	(c4x_output_ascii):  Fix.

Co-Authored-By: Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

From-SVN: r38316
2000-12-16 23:28:20 +00:00
Michael Hayes
8a119a7d47 c4x.h (MD_INIT_BUILTINS, [...]): Define.
* config/c4x/c4x.h (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Define.

	* config/c4x/c4x-protos.h (c4x_init_builtins): New prototype.
	(c4x_expand_builtin): Likewise.

	* config/c4x/c4x.c (c4x_init_builtins): New function.
	(c4x_expand_builtin): Likewise.

	* config/c4x/c4x.md (floatunsqihf2): New pattern.
	(*floatqihf2_set, *fixhfqi_set, fix_trunchfqi2): Likewise.
	(fixuns_trunchfqi2, toieee, frieee, *ldhf_conditional): Likewise.
	(*ldhf_conditional_noov, movhfcc, trap, cond_trap_cc): Likewise.
	(*toieee_movqf_clobber, *frieee_movqf_clobber): Likewise.

Co-Authored-By: Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

From-SVN: r38315
2000-12-16 23:13:15 +00:00
Michael Hayes
66f7715434 libgcc2.h: Use Wtype for SItype and DWtype for DItype in prototypes.
* libgcc2.h: Use Wtype for SItype and DWtype for DItype in prototypes.
	* libgcc2.c (__absvsi2): Use Wtype and DWtype.
	(__absvdi2, __addvsi3, __addvdi3, __subvsi3): Likewise.
	(__subvdi3, __mulvsi3, __mulvdi3, __negvsi2, __negvdi2): Likewise.

From-SVN: r38314
2000-12-16 22:43:58 +00:00
Alexandre Oliva
f11009b711 sh.h (INITIALIZE_TRAMPOLINE): Enclose the block statement in do/while(0).
* config/sh/sh.h (INITIALIZE_TRAMPOLINE): Enclose the block
statement in do/while(0).

From-SVN: r38313
2000-12-16 19:40:19 +00:00
Herman A.J. ten Brugge
d092a92533 safe-ctype.h: Make code work on all targets and not just on targets where a char is 8 bits.
* safe-ctype.h: Make code work on all targets and not just on
        targets where a char is 8 bits.

From-SVN: r38312
2000-12-16 11:12:06 -08:00
Tom Tromey
68c7dea8ed libjava.exp (test_libjava_from_javac): Strange quoting trick for `.class' link case.
* lib/libjava.exp (test_libjava_from_javac): Strange quoting trick
	for `.class' link case.
	(bytecompile_file): Change directory outside of `catch'.

	* libjava.lang/Thread_1.java: Removed.
	* libjava.lang/Thread_1.out: Likewise.

	* libjava.lang/N19990310_4.xfail: New file.
	* libjava.lang/stub.xfail: Added new failure modes.
	* libjava.lang/stringconst.xfail: New file.
	* libjava.lang/PR162.xfail: New file.
	* libjava.lang/Final.xfail: Removed.

From-SVN: r38311
2000-12-16 19:02:54 +00:00
Jan Hubicka
2bed339138 i386.md (ashrsi3_cmpno, [...]): Remove redundant '@' from the template.
* i386.md (ashrsi3_cmpno, ashrhi3_cmpno, ashrqi3_cmpno, lshrsi3_cmpno,
	lshrhi3_cmpno): Remove redundant '@' from the template.

	* i386.md (cmpstrsi_1): Fix type of the compare.

	* genattrtab.c (attr_rtx_cost): New function.
	(simplify_test_exp): Avoid overactive inlining; use temporary
	obstacks for tests.

From-SVN: r38310
2000-12-16 19:00:57 +00:00
Richard Kenner
43db5b3c2c diagnostic.c (finish_abort): Deleted.
Sat Dec 16 10:41:11 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* diagnostic.c (finish_abort): Deleted.
	(fatal): Add code from fninish_abort.
	(error_recursion, fancy_abort): Call fatal, not finish_abort.
	(trim_filename): Remove leading "../".
	* diagnostic.h (finish_abort): Deleted.
	* toplev.c (crash_signal): Call fatal, not finish_abort.

	* stor-layout.c (place_field): Treat overflowing DECL_SIZE_UNIT
	as if size were variable.

	* expmed.c (expand_mult): Write REG_EQUAL note with proper mode.

From-SVN: r38309
2000-12-16 11:23:46 -05:00
Diego Novillo
112550d37d unix.h (ASM_OUTPUT_MI_THUNK): Fix references to _GLOBAL_OFFSET_TABLE_ when using Intel syntax.
2000-12-15  Diego Novillo  <dnovillo@redhat.com>

	* i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix references to
	_GLOBAL_OFFSET_TABLE_ when using Intel syntax.

From-SVN: r38308
2000-12-16 11:07:25 -05:00
Richard Kenner
67011d8196 stor-layout.c (place_field): Treat overflowing DECL_SIZE_UNIT as if size were variable.
* stor-layout.c (place_field): Treat overflowing DECL_SIZE_UNIT
	as if size were variable.

From-SVN: r38307
2000-12-16 10:46:00 -05:00
Richard Kenner
23cb454af9 * expmed.c (expand_mult): Write REG_EQUAL note with proper mode.
From-SVN: r38306
2000-12-16 10:43:55 -05:00
Neil Booth
3244472df9 tradcpp.c: T_WARNING: New.
* tradcpp.c: T_WARNING: New.
        (do_warning): New function.
        (finclude): Skip past the newline and increase the line number
        before calling output_line_command.
        (do_line): Skip the new line after output_line_command.  Don't
        pre-decrement the line number.

From-SVN: r38305
2000-12-16 10:41:56 +00:00
Jeff Law
c978ecd3ed Daily bump.
From-SVN: r38304
2000-12-16 01:45:11 -07:00
Kriang Lerdsuwanakij
a472a8887b Remove conflict marker.
From-SVN: r38303
2000-12-16 08:16:09 +00:00
Kriang Lerdsuwanakij
221c7a7ff7 tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of IS_AGGR_TYPE.
* tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
	IS_AGGR_TYPE.

	* g++.old-deja/g++.oliva/template5.C: Remove XFAILs.

From-SVN: r38302
2000-12-16 08:06:04 +00:00
Kriang Lerdsuwanakij
b429fdf002 pt.c (unify): Handle when both ARG and PARM are BOUND_TEMPLATE_TEMPLATE_PARM.
* pt.c (unify): Handle when both ARG and PARM are
	BOUND_TEMPLATE_TEMPLATE_PARM.

	* g++.old-deja/g++.pt/ttp65.C: New test.

From-SVN: r38301
2000-12-16 07:57:21 +00:00
Kriang Lerdsuwanakij
c2beae77c6 pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and DECL_TEMPLATE_PARM_P.
* pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
	DECL_TEMPLATE_PARM_P.

	* g++.old-deja/g++.pt/ttp64.C: New test.

From-SVN: r38300
2000-12-16 07:47:22 +00:00
Tom Tromey
3cd4948faf * libjava.lang/instinit.out: Removed erroneous line.
From-SVN: r38299
2000-12-16 06:45:22 +00:00
Tom Tromey
fabd67f907 * libjava.lang/Thread_1.out: Expect `0' active count.
From-SVN: r38298
2000-12-16 06:41:04 +00:00
Tom Tromey
3a9e1959df stub.xfail: New file.
* libjava.lang/stub.xfail: New file.
	* libjava.lang/pr83.xfail: New file.
	* libjava.lang/err8.xfail: New file.
	* libjava.lang/err7.xfail: New file.
	* libjava.lang/Shazam.xfail: New file.
	* libjava.lang/err11.xfail: New file.

	* libjava.lang/instinit2.java: Renamed class to `instinit2'.

	* libjava.lang/anon3.out: Fixed typo.

	* libjava.lang/Class_1.java (main): Uncommented out previously
	failing code; now it works

From-SVN: r38297
2000-12-16 05:59:45 +00:00
Tom Tromey
0254608834 libjava.compile test fixes.
* lib/libjava.exp (libjava_tcompile): New proc.
	(test_libjava_from_source): Use it.
	(test_libjava_from_javac): Likewise.
	(find_javac): New proc.
	(bytecompile_file): Use it.
	(test_libjava_from_javac): Handle `xfail-gcjC' tag.  If no-exec
	set, then don't link even if program has a `main'.

	* libjava.compile/static_3.xfail: New file.
	* libjava.compile/weirddecl.xfail: New file.
	* libjava.compile/static_2.xfail: New file.
	* libjava.compile/not_a_redef.xfail: New file.
	* libjava.compile/inner_1.xfail: New file.
	* libjava.compile/assignment_2.xfail: New file.
	* libjava.compile/assignment.xfail: New file.
	* libjava.compile/abstr.xfail: New file.
	* libjava.compile/PR375.xfail: New file.
	* libjava.compile/PR374.java: New file.
	* libjava.compile/PR238.xfail: New file.
	* libjava.compile/PR208.xfail: New file.
	* libjava.compile/PR207.xfail: New file.

From-SVN: r38296
2000-12-16 02:06:29 +00:00
Tom Tromey
325de66c4c jcf-parse.c (jcf_parse_source): Set wfl_operator if not already set.
* jcf-parse.c (jcf_parse_source): Set wfl_operator if not already
	set.

From-SVN: r38295
2000-12-16 01:51:51 +00:00
Tom Tromey
6bd1914e10 jargrep.c: Include getopt.h if it exists.
* jargrep.c: Include getopt.h if it exists.
	(optind): Declare.
	* configure, config.h: Rebuilt.
	* configure.in: Check for getopt.h.

Co-Authored-By: Kelley Cook <kelleycook@home.com>

From-SVN: r38294
2000-12-15 18:45:09 +00:00
Andrew Haley
e35990c441 boehm.c (mark_reference_fields): Change test to correctly detect bitmap overflow.
2000-12-14  Andrew Haley  <aph@redhat.com>

        * boehm.c (mark_reference_fields): Change test to correctly detect
        bitmap overflow.

From-SVN: r38293
2000-12-15 17:35:03 +00:00
Jason Merrill
967900711f * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
From-SVN: r38292
2000-12-15 11:36:00 -05:00
Jason Merrill
8d42565b84 * init.c (build_new_1): Don't strip quals from type.
From-SVN: r38291
2000-12-15 11:23:26 -05:00
Jason Merrill
fab09a2494 * decl.c (pushdecl): Don't check for linkage on a non-decl.
From-SVN: r38290
2000-12-15 11:15:52 -05:00
Tom Tromey
1e185c02d4 ResourceBundle.java (trySomeGetBundle): Pass class loader to Class.forName.
* java/util/ResourceBundle.java (trySomeGetBundle): Pass class
	loader to Class.forName.

From-SVN: r38289
2000-12-15 15:49:50 +00:00
Jakub Jelinek
be76805509 gcc.c (cpp_options): Pass -fno-operator-names.
* gcc.c (cpp_options): Pass -fno-operator-names.
	* cpplib.h (struct cpp_options): Add operator_names.
	* cppinit.c (cpp_create_reader): Initialize it.
	(initialize_builtins): If -fno-operator-names, don't add
	C++ alternate operator names.
	(COMMAND_LINE_OPTIONS): Add -fno-operator-names.
	(cpp_handle_option): Clear operator_names.

From-SVN: r38288
2000-12-15 16:49:28 +01:00
Jason Merrill
c3e899c125 call.c (build_op_delete_call): See through ARRAY_TYPEs.
* call.c (build_op_delete_call): See through ARRAY_TYPEs.

        * call.c (build_new_function_call): Lose space before paren in
        error message.
        (build_new_method_call): Likewise.

        * typeck2.c (build_m_component_ref): Propagate quals from datum.

From-SVN: r38287
2000-12-15 10:43:11 -05:00
Jason Merrill
745b909395 jump.c (jump_optimize_1): Don't delete the line note after the prologue even if it seems redundant.
* jump.c (jump_optimize_1): Don't delete the line note after the
        prologue even if it seems redundant.

        * config/arm/arm.c (arm_expand_prologue): Set RTX_FRAME_RELATED_P
        on all insns used to adjust the stack.

From-SVN: r38286
2000-12-15 10:10:30 -05:00
Jan Hubicka
ad334b5169 combine.c (cant_combine_insn_p): Get around SUBREGs when determining hardreg<->reg moves.
* combine.c (cant_combine_insn_p): Get around SUBREGs when determining
	hardreg<->reg moves.

From-SVN: r38285
2000-12-15 14:33:32 +00:00
Jan Hubicka
29360e5681 genrecog.c (add_to_sequence): Remove special case for const_int_operand.
* genrecog.c (add_to_sequence): Remove special case for
	const_int_operand.
	(maybe_both_true): Return 1 when falling out of sequence when
	trying to find common possition in the pattern.

From-SVN: r38284
2000-12-15 13:50:32 +00:00
Jan Hubicka
dde068d924 * integrate.c (copy_rtx_and_substitute): Copy mode too.
From-SVN: r38283
2000-12-15 13:46:51 +00:00
Jan Hubicka
0bf7d71a78 * flow.c (notice_stack_pointer_modification_1): Cleanup.
From-SVN: r38282
2000-12-15 13:14:37 +00:00
Andreas Jaeger
3896f13e30 configure.in: Handle lang_dirs.
2000-12-15  Andreas Jaeger  <aj@suse.de>

	* configure.in: Handle lang_dirs.

From-SVN: r38281
2000-12-15 10:52:41 +01:00
Andreas Jaeger
53714cda80 config-lang.in (lang_dirs): Added.
2000-12-15  Andreas Jaeger  <aj@suse.de>

	* config-lang.in (lang_dirs): Added.

From-SVN: r38280
2000-12-15 10:51:52 +01:00
Alexandre Oliva
b33493e3f3 function.c (adjust_trampoline_addr): New function.
* function.c (adjust_trampoline_addr): New function.
(trampoline_address): Call it instead of round_trampoline_addr().
* tm.texi (TRAMPOLINE_ADJUST_ADDRESS): Document it.

From-SVN: r38279
2000-12-15 09:09:41 +00:00
Alexandre Petit-Bianco
1e0cdc1036 parse.y (end_artificial_method_body): Fixed undefined behavior.
2000-12-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (end_artificial_method_body): Fixed undefined behavior.
	Credits go to rth for finding it.

(http://gcc.gnu.org/ml/gcc/2000-12/msg00495.html)

From-SVN: r38278
2000-12-15 00:50:12 -08:00
Jeff Law
40244a2757 Daily bump.
From-SVN: r38277
2000-12-15 01:45:08 -07:00
Bryce McKinlay
315d4c2711 * Makefile.dist: Renamed from Makefile.orig.
From-SVN: r38276
2000-12-15 08:13:12 +00:00
Tom Tromey
cd84842395 * java/util/ResourceBundle.java
(getBundle(String,Locale,ClassLoader)): New method.
	(trySomeGetBundle): Added `loader' argument.
	(partialGetBundle): Likewise.

From-SVN: r38275
2000-12-15 06:51:07 +00:00
Tom Tromey
13b7bc8a56 NumberFormat.java (groupingUsed, [...]): Now package-private.
* java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
	maximumFractionDigits, maximumIntegerDigits,
	minimumFractionDigits, minimumIntegerDigits): Now
	package-private.

From-SVN: r38274
2000-12-15 06:23:28 +00:00
Tom Tromey
8eb1306fb7 * java/lang/Thread.java (checkAccess): Now final.
From-SVN: r38273
2000-12-15 06:15:49 +00:00
Tom Tromey
4ca70ccd2a * java/lang/RuntimePermission.java: Class now final.
From-SVN: r38272
2000-12-15 06:13:35 +00:00
Tom Tromey
49c24f00aa * java/io/StringWriter.java (StringWriter(int)): Now public.
From-SVN: r38271
2000-12-15 06:08:55 +00:00
Tom Tromey
f2edab0e90 * java/io/SerializablePermission.java (legal_names): Now private.
From-SVN: r38270
2000-12-15 05:59:31 +00:00