Commit Graph

17501 Commits

Author SHA1 Message Date
Jeffrey A Law
00ccc16d80 configure.in: Check if the assembler supports ".balign" and ".p2align" and define...
* configure.in: Check if the assembler supports ".balign" and
        ".p2align" and define HAVE_GAS_BALIGN_AND_P2ALIGN appropriately.
        * acconfig.h (HAVE_GAS_BALIGN_AND_P2ALIGN): New tag.
        * i386/gas.h (ASM_OUTPUT_ALIGN): If the assembler has support for
        ".balign" then use it.

From-SVN: r21023
1998-07-08 18:27:21 -06:00
Jeff Law
0841099a97 Fix debugging of CHARACTER*(*), etc., which requires emitting debug info on types like `ftnlen':
Fix debugging of CHARACTER*(*), etc., which requires
	emitting debug info on types like `ftnlen':
	* com.c (ffecom_start_progunit_): Don't bother
	resetting "invented" flag for identifier.
	(ffecom_transform_equiv_): Don't bother zeroing
	"ignored" flag for decl.
	(pushdecl): No longer set "ignored", "used", or
	"suppressed debug" flags for decls having "invented"
	identifiers.

From-SVN: r21022
1998-07-08 17:47:57 -06:00
Craig Burley
2b228a3180 Fix debugging of CHARACTER*(*), etc., which requires emitting debug info on types like `ftnlen':
d
	Fix debugging of CHARACTER*(*), etc., which requires
	emitting debug info on types like `ftnlen':
	* com.c (ffecom_start_progunit_): Don't bother
	resetting "invented" flag for identifier.
	(ffecom_transform_equiv_): Don't bother zeroing
	"ignored" flag for decl.
	(pushdecl): No longer set "ignored", "used", or
	"suppressed debug" flags for decls having "invented"
	identifiers.

From-SVN: r21021
1998-07-08 17:47:55 -06:00
Craig Burley
621bb5b115 Fix debugging of CHARACTER*(*), etc., which requires emitting debug info on types like `ftnlen':
�
	Fix debugging of CHARACTER*(*), etc., which requires
	emitting debug info on types like `ftnlen':
	* com.c (ffecom_start_progunit_): Don't bother
	resetting "invented" flag for identifier.
	(ffecom_transform_equiv_): Don't bother zeroing
	"ignored" flag for decl.
	(pushdecl): No longer set "ignored", "used", or
	"suppressed debug" flags for decls having "invented"
	identifiers.

From-SVN: r21020
1998-07-08 17:47:54 -06:00
Jeffrey A Law
5dd2add607 * print-rtl.c (print_rtx): Revert previous patch.
From-SVN: r21019
1998-07-08 17:44:15 -06:00
Jeffrey A Law
6acaa31887 * gcc.dg/980709-1.c: New test.
From-SVN: r21018
1998-07-08 17:40:33 -06:00
Jeffrey A Law
752e74f910 jump.c (duplicate_loop_exit_test): Do not duplicate the loop exit test if the exit code has an insn with ASM_OPERANDS.
* jump.c (duplicate_loop_exit_test): Do not duplicate the loop exit
        test if the exit code has an insn with ASM_OPERANDS.

From-SVN: r21017
1998-07-08 17:37:50 -06:00
Jeffrey A Law
a550815273 * m32r.h (STDIO_PROTO): Fix typo.
From-SVN: r21016
1998-07-08 16:45:04 -06:00
Jeffrey A Law
a6610106b8 * i386/cygwin32.h (STDIO_PROTO): Fix typo.
From-SVN: r21015
1998-07-08 16:39:04 -06:00
Jeffrey A Law
5f0c590d40 pa.h (LEGITIMIZE_RELOAD_ADDRESS): Handle addresses created by LEGITIMIZE_RELOAD_ADDRESS.
* pa.h (LEGITIMIZE_RELOAD_ADDRESS): Handle addresses created by
        LEGITIMIZE_RELOAD_ADDRESS.
        * tm.texi (LEGITIMIZE_RELOAD_ADDRESS): Note that this macro must be
        able to handle addresses created by previous invocations of the macro.

From-SVN: r21014
1998-07-08 16:05:40 -06:00
Jeffrey A Law
2710ffc868 flow.c (find_auto_inc): Remove most recent change.
* flow.c (find_auto_inc): Remove most recent change.  Real bug was
        elsewhere.

From-SVN: r21013
1998-07-08 15:15:55 -06:00
Jeffrey A Law
02e39abcc1 cse.c (count_reg_usage): Count registers used in addresses of CLOBBERs.
* cse.c (count_reg_usage): Count registers used in addresses of
        CLOBBERs.

From-SVN: r21012
1998-07-08 14:46:15 -06:00
Jim Wilson
d7f8f04755 * Makefile.in (STAGESTUFF): Readd line lost during June 9 FSF merge.
From-SVN: r21011
1998-07-08 10:13:04 -07:00
Jim Wilson
6e9856bad2 Fix big/little endian confusion.
* configure.in (mips64orion-*-rtems*): Use elf64.h not elfl64.h.

From-SVN: r21010
1998-07-08 08:09:39 -07:00
Vladimir N. Makarov
15bfc37c69 fp-bit.c (__gexf2, [...]): Add function stubs.
* config/fp-bit.c (__gexf2, __fixxfsi, __floatsixf): Add function
	stubs.

From-SVN: r21009
1998-07-08 13:44:21 +00:00
Robert Lipe
2b47c34bb8 Remove '#line' directives from file.
Remove '#line' directives from file.  They were tormenting some Solaris
builds. Strangely, they were unnoticed on other hosts including linux/x86
and ix86-pc-sco3.2v5*.

From-SVN: r21008
1998-07-08 13:02:30 +00:00
Vladimir N. Makarov
795add948b toplev.c (lang_options): Add -Wlong-long, -Wno-long-long options.
* toplev.c (lang_options): Add -Wlong-long, -Wno-long-long
	options.
	* c-decl.c (warn_long_long): Define.
	(c_decode_option): Parse -Wlong-long, -Wno-long-long options.
	(grokdeclarator): Add flag `warn_long_long' as guard for
	warning "ANSI C does not support `long long'".
	* invoke.texi: Add description of options -Wlong-long,
	-Wno-long-long.
	* gcc.1: The same as above.
	* cp-tree.h (warn_long_long): Define.
	* decl.c (grokdeclarator): Add flag `warn_long_long' as guard for
	warning "ANSI C++ does not support `long long'".
	* decl2.c (warn_long_long): Define.
	(lang_decode_option): Parse -Wlong-long, -Wno-long-long options.

From-SVN: r21007
1998-07-08 12:16:05 +00:00
Dave Love
37785a19fd Honor [sic] JCB technical writer preferences :-).
From-SVN: r21006
1998-07-08 08:59:38 +00:00
Jeffrey A Law
b98b49ac72 rtlanal.c (reg_overlap_mentioned_p): Handle STRICT_LOW_PART.
* rtlanal.c (reg_overlap_mentioned_p): Handle STRICT_LOW_PART.  If
        either argument is CONSTANT_P, then return zero.
        * reload.c (reg_overlap_mentioned_for_reload_p): Similarly.

From-SVN: r21005
1998-07-07 19:58:58 -06:00
Jeffrey A Law
67a00b49d6 configure.in: Also look at $srcdir/gas/configure to find a gas version #.
* configure.in: Also look at $srcdir/gas/configure to find a
        gas version #.

From-SVN: r21004
1998-07-07 19:51:21 -06:00
Jeff Law
280831b064 Daily bump.
From-SVN: r21003
1998-07-07 18:45:02 -06:00
Carlo Wood
a596f4d7a2 * dsp16xx.h : Clean up of macro OPTIMIZATION_OPTIONS
From-SVN: r21002
1998-07-07 17:33:15 -06:00
Mumit Khan
c8d9f9657b cygwin32.h (ASM_DECLARE_FUNCTION_NAME): Merge duplicate definitions from last two patches.
* i386/cygwin32.h (ASM_DECLARE_FUNCTION_NAME): Merge duplicate
	definitions from last two patches.

From-SVN: r21001
1998-07-07 17:31:03 -06:00
Mumit Khan
43e26b301d cygwin32.h (ASM_DECLARE_FUNCTION_NAME): Merge duplicate definitions from last two patches.
* i386/cygwin32.h (ASM_DECLARE_FUNCTION_NAME): Merge duplicate
	definitions from last two patches.

From-SVN: r21000
1998-07-07 17:31:01 -06:00
J"orn Rennecke
3c785e47dc reload1.c (choose_reload_regs): Don't set reload_override_in if EQUIV is clobbered in INSN and the reload is...
* reload1.c (choose_reload_regs): Don't set reload_override_in
	if EQUIV is clobbered in INSN and the reload is done after INSN.

From-SVN: r20999
1998-07-07 16:08:34 +01:00
Richard Henderson
54303b5cb3 * gcc.c-torture/execute/bcp-1.c: New test.
From-SVN: r20998
1998-07-07 06:41:17 -07:00
J"orn Rennecke
41b083c42e expr.c (emit_queue): If emitting a SEQUENCE, set QUEUED_INSN to the first insn of the sequence.
* expr.c (emit_queue): If emitting a SEQUENCE, set QUEUED_INSN
	to the first insn of the sequence.

From-SVN: r20997
1998-07-07 14:26:49 +01:00
J"orn Rennecke
759bd8b73b * cse (cse_insn): Don't make change without validation.
From-SVN: r20996
1998-07-07 14:09:07 +01:00
Jason Merrill
8ea2460f6a oops
From-SVN: r20995
1998-07-07 09:07:27 -04:00
Jason Merrill
dc8263bc05 decl.c (xref_tag): Handle attributes between 'class' and name.
* decl.c (xref_tag): Handle attributes between 'class' and name.
	* parse.y (aggr): Likewise.
	* semantics.c (finish_class_definition): Likewise.
	* Makefile.in (EXPECTED): Adjust.
	* cp-tree.h: Declare flag_optional_diags and warn_multichar.
	* decl2.c: Define them.
	(lang_decode_option): Handle them.
	* lang-options.h: Add -foptional-diags.
	* class.c (finish_struct): Don't complain about multiple meanings of
	name if -fno-optional-diags.
	* decl.c (pushdecl_class_level): Likewise.
	* lex.c (real_yylex): Check warn_multichar.

From-SVN: r20994
1998-07-07 07:25:01 -04:00
Jeffrey A Law
c8fbcc35ae * gcc.c-torture/execute/980707-1.c: New test.
From-SVN: r20993
1998-07-07 04:50:43 -06:00
Jeffrey A Law
d76b9d0944 mn10200.md (various zero/sign extension patterns): zero and sign extensions which use "sub" clobber cc0.
* mn10200.md (various zero/sign extension patterns): zero and sign
        extensions which use "sub" clobber cc0.

From-SVN: r20992
1998-07-07 04:45:12 -06:00
Jeffrey A Law
cf9cf73e66 Bump for snapshot
From-SVN: r20990
1998-07-07 03:12:11 -06:00
Jeffrey A Law
29b1f8628f * print-rtl.c (print_rtx): Use REAL_VALUE_TYPE instead of "double".
From-SVN: r20989
1998-07-07 03:09:31 -06:00
Richard Henderson
61632854ea print-rtl.c (print_rtx): Only print fp values when REAL_VALUE_TYPE is a double.
* print-rtl.c (print_rtx): Only print fp values when REAL_VALUE_TYPE
        is a double.

From-SVN: r20988
1998-07-07 01:42:42 -07:00
Jeff Law
92ec03f59e Daily bump.
From-SVN: r20987
1998-07-06 18:45:03 -06:00
Jeffrey A Law
43396c9e21 Bump for snapshot
From-SVN: r20986
1998-07-06 18:32:01 -06:00
J"orn Rennecke
a5546290af reload.c (find_equiv_reg): When looking for stack pointer + const, make sure we don't use a stack adjust.
* reload.c (find_equiv_reg): When looking for stack pointer + const,
        make sure we don't use a stack adjust.

From-SVN: r20985
1998-07-06 18:19:56 -06:00
J"orn Rennecke
1b4d8b2b5c reload.c (find_equiv_reg): If need_stable_sp is set, check if stack pointer is changed directly.
* reload.c (find_equiv_reg): If need_stable_sp is set,
	check if stack pointer is changed directly.

From-SVN: r20984
1998-07-06 18:18:02 -06:00
Mumit Khan
27da1b4d5a Support for dllimport and dllexport attributes for i386-pe.
* tree.h (DECL_NON_ADDR_CONST_P): New accessor macro.
	(struct tree_decl): Add non_addr_const_p field.
	* tree.c (staticp): Use.
	* i386/cygwin32.h (CPP_PREDEFINES): Map __declspec(x) to GCC
	attributes.
	(SUBTARGET_SWITCHES): Switches to turn on/off dllimport|export
	attributes. Also accept -mwindows option.
	(VALID_MACHINE_DECL_ATTRIBUTE): New macro.
	(MERGE_MACHINE_DECL_ATTRIBUTE): New macro.
	(REDO_SECTION_INFO_P): New macro.
	(DRECTVE_SECTION_FUNCTION): New macro.
	(drectve_section): Cover function to implement above.
	(SWITCH_TO_SECTION_FUNCTION): New macro.
	(switch_to_section): Covert function to implement above.
	(EXTRA_SECTIONS): Add in_drectve.
	(EXTRA_SECTION_FUNCTIONS): Add in_drectve and switch_to_section.
	(ENCODE_SECTION_INFO): Delete old macro and redefine as a function.
	(STRIP_NAME_ENCODING): Handle new attributes.
	(ASM_OUTPUT_LABELREF): New macro.
	(ASM_OUTPUT_FUNCTION_NAME): New macro.
	(ASM_OUTPUT_COMMON): New macro.
	(ASM_OUTPUT_DECLARE_OBJECT_NAME): New macro.
	* i386/mingw32.h (CPP_PREDEFINES): Map __declspec(x) to GCC
	attributes.
	* i386/winnt.c (i386_pe_valid_decl_attribute_p): New function.
	(i386_pe_merge_decl_attributes): New function.
	(i386_pe_check_vtable_importexport): New function.
	(i386_pe_dllexport_p): New function.
	(i386_pe_dllimport_p): New function.
	(i386_pe_dllexport_name_p): New function.
	(i386_pe_dllimport_name_p): New function.
	(i386_pe_mark_dllexport): New function.
	(i386_pe_mark_dllimport): New function.
	(i386_pe_encode_section_info): New function.
	(i386_pe_unique_section): Strip encoding from name first.

From-SVN: r20983
1998-07-06 18:05:27 -06:00
Manfred Hollstein
bceb30e77b libgcc2.c (L_exit): Provide a fake for atexit on systems which define ON_EXIT but not HAVE_ATEXIT.
* libgcc2.c (L_exit): Provide a fake for atexit on systems which
        define ON_EXIT but not HAVE_ATEXIT.

From-SVN: r20982
1998-07-06 17:52:21 -06:00
Franz Sirl
7edf1e0416 * m68k.md (zero_extend QI to HI): Correctly handle TARGET_5200.
From-SVN: r20981
1998-07-06 17:47:09 -06:00
Ulrich Drepper
79325812b8 * i386.c: Remove random whitespace at end of lines.
From-SVN: r20980
1998-07-06 17:42:47 -06:00
Ulrich Drepper
3403c6ca8f i386.c (ix86_epilogue): For pentium processors...
* i386.c (ix86_epilogue): For pentium processors, try to deallocate
        4 or 8 byte stacks with pop instructions instead of an add instruction.

From-SVN: r20979
1998-07-06 17:39:32 -06:00
Klaus Kaempf
eb04ab5a1a * alpha.c: Include tree.h before expr.h.
From-SVN: r20978
1998-07-06 17:32:38 -06:00
Jeff Law
9fa1246d49 cygwin32.h: Add some declaration of external functions.
X
	* i386/cygwin32.h: Add some declaration of external functions.
 	(ASM_DECLARE_FUNCTION_NAME): Define.
	(ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
	(ASM_FILE_END): Define.
	* i386/winnt.c (i386_pe_declare_function_type): New function.
	(struct extern_list, extern_head): Define.
	(i386_pe_record_external_function): New function.
	(i386_pe_asm_file_end): New function.

From-SVN: r20977
1998-07-06 17:03:03 -06:00
Ian Lance Taylor
672a233f2d cygwin32.h: Add some declaration of external functions.
�
	* i386/cygwin32.h: Add some declaration of external functions.
 	(ASM_DECLARE_FUNCTION_NAME): Define.
	(ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
	(ASM_FILE_END): Define.
	* i386/winnt.c (i386_pe_declare_function_type): New function.
	(struct extern_list, extern_head): Define.
	(i386_pe_record_external_function): New function.
	(i386_pe_asm_file_end): New function.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r20976
1998-07-06 17:03:02 -06:00
J"orn Rennecke
b294ca3876 reload1.c (delete_dead_insn): Don't delete feeding insn if that insn has side effects.
* reload1.c (delete_dead_insn): Don't delete feeding insn
	if that insn has side effects.

From-SVN: r20975
1998-07-06 16:55:30 -06:00
J"orn Rennecke
6186ed06d2 flow.c (find_auto_inc): Clear UNCHANGING bit of register that is changed.
* flow.c (find_auto_inc): Clear UNCHANGING bit of register that is
        changed.

From-SVN: r20974
1998-07-06 16:53:34 -06:00
J"orn Rennecke
979e20e973 reload1.c (reload_reg_free_before_p): RELOAD_FOR_OPADDR_ADDR precedes RELOAD_FOR_OUTADDR_ADDRESS.
* reload1.c (reload_reg_free_before_p): RELOAD_FOR_OPADDR_ADDR
        precedes RELOAD_FOR_OUTADDR_ADDRESS.

From-SVN: r20973
1998-07-06 16:44:41 -06:00