Commit Graph

20831 Commits

Author SHA1 Message Date
Jason Merrill
b262d64c12 typeck.c (convert_for_assignment): Allow boolean integral constant expressions to convert to null pointer.
* typeck.c (convert_for_assignment): Allow boolean integral constant
	expressions to convert to null pointer.
	* decl.c (lookup_namespace_name): Resolve namespace aliases.
	* class.c (push_nested_class): Allow namespaces.
	* decl2.c (set_decl_namespace): Add friendp parameter.
	* decl.c (grokfndecl): Pass it.
	(grokvardecl): Likewise.
	* cp-tree.h: Change declaration.

From-SVN: r25420
1999-02-24 19:11:35 -05:00
Jason Merrill
1b14496f06 * configure.in: Fix INSTALLDIR sed pattern for Solaris sed.
From-SVN: r25419
1999-02-24 18:50:35 -05:00
Jim Wilson
82a298a97d Fix cross compiler build failure in dbxout.c.
* dbxout.c (gstab.h): Use if CROSS_COMPILE.

From-SVN: r25417
1999-02-24 13:00:04 -08:00
Jeffrey A Law
d7cdf1138e calls.c (initialize_argument_information): New function extracted from expand_call.
* calls.c (initialize_argument_information): New function extracted
        from expand_call.
        (expand_call): Use initialize_argument_information.  Remove variables
        which are no longer used due to cleanups.

From-SVN: r25416
1999-02-24 12:06:17 -07:00
Craig Burley
c55310ab51 finish applying earlier patch from Dave Love
From-SVN: r25415
1999-02-24 14:03:02 -05:00
Craig Burley
bc0a89ecec changelog entries keep people happy
From-SVN: r25414
1999-02-24 13:54:55 -05:00
Craig Burley
d5c8e60678 move test to its proper home, given current g77
From-SVN: r25413
1999-02-24 13:48:17 -05:00
Jim Wilson
5a904a61b0 Fix dwarf2 debug error found by gdb testsuite: add big-endian correction.
* dwarf2out.c (add_location_or_const_value_attribute):  Add big
	endian correction for parms passed in regs but living on the stack.

From-SVN: r25412
1999-02-24 09:48:42 -08:00
Jeffrey A Law
599f37b6d3 calls.c (compute_argument_block_size): New function, extracted from expand_calls.
* calls.c (compute_argument_block_size): New function, extracted from
        expand_calls.
        (expand_calls): Use compute_argument_block_size.  Delete
        original_args_size, use unadjusted_args_size instead.

From-SVN: r25411
1999-02-24 10:42:40 -07:00
Joern Rennecke
db35306d6f Typo fix in comment.
From-SVN: r25410
1999-02-24 16:54:38 +00:00
Jeffrey A Law
cc0b1adcce calls.c (precompute_arguments): New function, extracted from expand_call.
* calls.c (precompute_arguments): New function, extracted from
        expand_call.
        (expand_call): Use precompute_arguments.

From-SVN: r25409
1999-02-24 09:29:36 -07:00
Nick Clifton
1de558ee81 Fix typo in arm recognition string
From-SVN: r25408
1999-02-24 16:23:58 +00:00
Jeffrey A Law
0f9b3ea686 calls.c (finalize_must_preallocate): New function, extracted from expand_call.
* calls.c (finalize_must_preallocate): New function, extracted from
        expand_call.
        (expand_call): Use finalize_must_preallocate.
        * calls.c (store_one_arg): Mark "variable_size" as possibly unused.

From-SVN: r25407
1999-02-24 08:07:38 -07:00
Nick Clifton
518ee01e75 Add -O3 to TORTURE_OPTIONS list.
From-SVN: r25406
1999-02-24 14:12:44 +00:00
Tom Tromey
bdb59aec77 gjavah.c (struct namelet): New structure.
* gjavah.c (struct namelet): New structure.
	(add_namelet): New function.
	(print_namelet): New function.
	(print_class_decls): Use add_namelet and print_namelet to generate
	namespaces and not classes.
	(method_printed): New global.
	(HANDLE_END_METHOD): Examine method_printed.
	(print_method_info): Set method_printed when required.  Print
	error if function to be ignored is marked virtual.  Handle $finit$
	method.
	(METHOD_IS_FINAL): New macro.
	(print_field_info): Use it.
	(HANDLE_METHOD): Clear method_printed.
	(method_pass): New global.
	(HANDLE_END_FIELD): Call add_class_decl on the first pass.
	(process_file): Do two passes over both fields and methods.
	(HANDLE_METHOD): Examine method_pass.
	(root): New global.
	(add_class_decl): New function.
	(print_class_decls): Don't scan over entire constant pool.

From-SVN: r25403
1999-02-24 13:47:39 +00:00
Jeffrey A Law
46f40127a2 regclass.c (record_reg_classes, case 'p'): Set classes appropriately.
* regclass.c (record_reg_classes, case 'p'): Set classes appropriately.
        An alternative always fails if it needs a pseudo and no suitable
        register class can be found.
Bootstrapped on solaris.

From-SVN: r25402
1999-02-24 06:17:04 -07:00
J"orn Rennecke
c99f8c2a3e loop.h (loop_insn_first_p): Declare.
* loop.h (loop_insn_first_p): Declare.
	* loop.c (loop_insn_first_p): No longer static.
	* unroll.c (iteration_info) Fix comparison to
	reg_iv_type->num_elements.
	Before accessing reg_biv_class, check index against
	max_reg_before_loop.
	Fix and enable code for giv iterators.
	(loop_iterations): Compare with reg_iv_type->num_elements instead
	of with max_reg_before_loop.

From-SVN: r25401
1999-02-24 11:50:54 +00:00
Jason Merrill
ddce352881 * pt.c (tsubst): Allow an array of explicit size zero.
From-SVN: r25400
1999-02-24 06:46:56 -05:00
J"orn Rennecke
69688f1ed7 * unroll.c (unroll_loop): Avoid out-of-bounds index for local_regno.
From-SVN: r25399
1999-02-24 11:18:59 +00:00
Zack Weinberg
d2ae3ff54e New testcase for cpp, written by Kaveh Ghazi <ghazi@caip.rutgers.edu>
From-SVN: r25398
1999-02-24 11:09:08 +00:00
Vladimir N. Makarov
c7b2eb810e sparc.h (CONDITIONAL_REGISTER_USAGE): Don't use PIC_OFFSET_TABLE_REGNUM for register allocation when -fPIC.
Wed Feb 24 11:26:41 1999  Vladimir N. Makarov  <vmakarov@cygnus.com>
	* config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Don't use
 	PIC_OFFSET_TABLE_REGNUM for register allocation when -fPIC.

From-SVN: r25397
1999-02-24 08:33:57 +00:00
Craig Burley
7a48ce6d73 update lib[FIU]77/configure from autoconf 2.13
From-SVN: r25396
1999-02-24 03:15:19 -05:00
Craig Burley
2f5962c056 fix up entries
From-SVN: r25395
1999-02-24 03:13:43 -05:00
Alexandre Oliva
76dc72a7e5 Makefile.in: Regen dependencies.
* lib/Makefile.in: Regen dependencies.
* makeinfo/Makefile.in, util/Makefile.in: Likewise.

From-SVN: r25391
1999-02-24 01:03:01 +00:00
Jeff Law
ae069bb08a Daily bump.
From-SVN: r25390
1999-02-23 17:45:02 -07:00
Tom Tromey
4e2e5821aa jvspec.c (lang_specific_driver): Recognize -fsyntax-only and disable linking in that case.
* jvspec.c (lang_specific_driver): Recognize -fsyntax-only and
	disable linking in that case.

From-SVN: r25389
1999-02-23 17:42:38 +00:00
Marc Lehmann
4873b277ca
corrected a minor typoe

From-SVN: r25388
1999-02-23 10:23:02 +00:00
Martin v. Löwis
f004c66b23 Mark failing code as XFAIL
From-SVN: r25387
1999-02-23 09:11:19 +00:00
Jason Merrill
8be64d0952 errfn.c: Change varargs code to look like toplev.c.
* errfn.c: Change varargs code to look like toplev.c.
	* method.c (process_modifiers): Don't prepend 'U' for char or
	wchar_t.

From-SVN: r25386
1999-02-22 20:44:23 -05:00
Jeff Law
bd022652bf Daily bump.
From-SVN: r25385
1999-02-22 17:45:04 -07:00
Andrew Cagney
a50f2a09ba Fix mips16 debug info problems with frame address.
* config/mips/mips.c (mips_debugger_offset): When TARGET_MIPS16 &&
 	frame_pointer_needed adjust frame size.
	(function_prologue): Don't MIPS16 .mask GPOFFSET. Already adjusted
 	in .frame pseudo-op.
	Frm Jim Wilson  <wilson@cygnus.com>:
	* mips.c (function_prologue): Adjust frame size in .frame pseudo-op
	when TARGET_MIPS16 && frame_pointer_needed.

From-SVN: r25382
1999-02-22 11:38:39 -08:00
Nick Clifton
3b7265ff89 Support ARM/Linux's armv syntax
From-SVN: r25381
1999-02-22 17:24:21 +00:00
Nick Clifton
f5a1b0d216 Apply ARM/Linux patches.
Rework cpu/architecture command line parsing.

From-SVN: r25380
1999-02-22 16:47:59 +00:00
Martin v. Löwis
956662b2f5 New test case from Nathan Sidwell.
From-SVN: r25379
1999-02-22 16:15:42 +00:00
Andrew MacLeod
89d3d44249 loop.c (libcall_other_regs): Make extern.
* loop.c (libcall_other_regs): Make extern.
	* rtl.h (find_last_value): Add parameter to prototype.
	(libcall_other_reg): Add extern declaration.
	* rtlanal.c (find_last_value): Add another parameter to allow
	a definition using a hardware register to be found as well.

From-SVN: r25378
1999-02-22 14:11:58 +00:00
Mark Mitchell
a4c6502a66 cse.c (dump_class): New function.
* cse.c (dump_class): New function.
	(invalidate_memory): Fix typo in comment.
	* function.c (temp_slot): Add an alias set field.
	(assign_stack_temp): Only reuse slots if they will have the
	same alias set as before.
	(combine_temp_slots): Don't combine if -fstrict-aliasing;
	that's unsafe.
	* rtl.c (copy_rtx): Copy all the flags (in particular,
	MEM_SCALAR_P).

From-SVN: r25372
1999-02-22 13:34:33 +00:00
Vladimir Makarov
44768aae76 Some insignificant corrections of the previous patch.
From-SVN: r25371
1999-02-22 11:43:58 +00:00
Vladimir N. Makarov
6d56756885 configure.in (i[34567]86-*-linux-gnu*, [...]): Use fixinc.x86-linux-gnu as fixincludes.
Mon Feb 22 14:13:23 1999  Vladimir N. Makarov  <vmakarov@cygnus.com>
	* configure.in (i[34567]86-*-linux-gnu*,
	i[34567]86-*-linux-gnulibc1, i[34567]86-*-linux-gnuaout*,
	i[34567]86-*-linux-gnuoldld*): Use fixinc.x86-linux-gnu as
	fixincludes.
	* configure: Rebuilt.
	* fixinc.x86-linux-gnu: New script for fixing asm-statements bug
	on x86 linux.
	* fixinc/fixinc.x86-linux-gnu: Copy of the previous one.
	* fixinc/mkfixinc.sh (i[34567]86-*-linux-gnu*,
	i[34567]86-*-linux-gnulibc1, i[34567]86-*-linux-gnuaout*,
	i[34567]86-*-linux-gnuoldld*): Use fixinc.x86-linux-gnu as
	fixincludes.

From-SVN: r25370
1999-02-22 11:32:00 +00:00
Tom Tromey
a32999346f jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f, not 0x1f.
* jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f,
	not 0x1f.

From-SVN: r25369
1999-02-22 09:15:30 +00:00
Ovidiu Predescu
b9ef73ea54 Reverted to the old behavior of encoding the types.
From-SVN: r25368
1999-02-22 09:02:25 +00:00
Craig Burley
43297964f3 improve wall of separation between build and install
From-SVN: r25367
1999-02-22 03:49:36 -05:00
Craig Burley
a2cf7debc7 reduce spurious warnings using -fsyntax-only
From-SVN: r25366
1999-02-22 03:41:42 -05:00
Craig Burley
3c350eb3d5 fix -fsyntax-only ICEs
From-SVN: r25365
1999-02-22 03:35:11 -05:00
Gavin Romig-Koch
e2e0986eb0 c-lex.c (yylex): Replace warning about integer constants being larger than long-longs...
* c-lex.c (yylex): Replace warning about integer constants being
	larger than long-longs, with a warning about integer constants
        being larger than the largest target integer.

From-SVN: r25364
1999-02-22 08:18:56 +00:00
Don Bowman
e9c0315e10 configure.in (mips*-*-vxworks*): Enable gthreads vxworks support.
* configure.in (mips*-*-vxworks*): Enable gthreads vxworks support.
        * configure: Rebuilt.

From-SVN: r25363
1999-02-21 18:32:00 -07:00
Jeff Law
78ab203316 Daily bump.
From-SVN: r25362
1999-02-21 17:45:02 -07:00
Jeffrey A Law
9c41200f1a 990222-1.c: New test.
* gcc.c-torture/execute/990222-1.c: New test.
New test from Herman ten Brugge

From-SVN: r25361
1999-02-21 17:17:46 -07:00
Jeffrey A Law
691d2a24a1 Bump for snapshot
From-SVN: r25359
1999-02-21 13:34:48 -07:00
Jeffrey A Law
14686fcda5 tm.texi: Update docs for constructors and destructors.
* tm.texi: Update docs for constructors and destructors.
And update comment in cp/decl2.c

From-SVN: r25356
1999-02-21 12:58:22 -07:00
H.J. Lu
b4bb92e52f decl2.c (start_objects): Make file scope constructors and destructors local to the file if...
* decl2.c (start_objects): Make file scope constructors and
        destructors local to the file if ASM_OUTPUT_CONSTRUCTOR and
        ASM_OUTPUT_DESTRUCTOR are defined.

From-SVN: r25354
1999-02-21 12:42:18 -07:00