Commit Graph

325 Commits

Author SHA1 Message Date
Mike Stump
db3cf6fb33 reformat a little to match GNU coding standards.
From-SVN: r14024
1997-05-06 23:05:54 +00:00
Mike Stump
e976b8b277 Add setjmp/longjmp exception handling.
From-SVN: r13968
1997-04-23 20:04:25 +00:00
Richard Kenner
920b13cc7e (L_bb, L_exit): Use 0 rather than NULL for null pointers.
From-SVN: r13883
1997-04-13 14:12:05 -04:00
Mike Stump
70e06f23df libgcc2.c (find_exception_table): Fix to logic to deal with functions that are in their own section...
* libgcc2.c (find_exception_table): Fix to logic to deal with
 	functions that are in their own section, such as template
 	instantiations, that cause overlapping EH tables.

From-SVN: r13830
1997-04-02 03:31:36 +00:00
Doug Evans
65f7a65344 * libgcc2.c (__bb_exit_func): Support gcov style output.
From-SVN: r13818
1997-03-28 22:38:07 +00:00
Richard Kenner
37ef10540d (__negdi2, __lshrdi3, __ashldi3, __ashrdi3, __ffsdi2):
Use ANSI style definition with full prototype.
(__muldi3, __udiv_w_sdiv, __udivmoddi4, __divdi3, __moddi3) : Likewise.
(__udivmoddi4, __udivdi3, __cmpdi2, __ucmpdi2) : Likewise.
(__fixunstfdi, __fixtfdi, __fixunsxfdi, __fixxfdi) : Likewise.
(__fixunsdfdi, __fixdfdi, __floatdixf, __floatditf) : Likewise.
(__floatdidf, __floatdisf, __fixunsxfsi, __fixunsdfsi) : Likewise.
(__gcc_bcmp, __eprintf, gopen, gclose, __bb_init_file) : Likewise.
(__bb_init_trace_func, __clear_cache, mprotect) : Likewise.
(__enable_execute_stack, cacheflush, exit) : Likewise.
(find_exception_table, __find_first_exception_table_match) : Likewise.

From-SVN: r13658
1997-02-16 07:55:15 -05:00
Mike Stump
8e702085e7 i formatting tweaks
From-SVN: r13614
1997-02-07 03:54:48 +00:00
Mike Stump
dd05a7e7c8 * libgcc2.c: Remove extern for malloc and realloc.
From-SVN: r13573
1997-01-31 23:37:05 +00:00
Richard Kenner
7d41c4114a (cacheflush): Add SONY NEWS-OS 4.2 version.
From-SVN: r13279
1996-12-11 09:09:06 -05:00
Jason Merrill
71c672c04d x
From-SVN: r13122
1996-11-11 21:21:09 +00:00
Mike Stump
b40b9d932c crtstuff.c (__do_global_dtors_aux): Allow finalization code to be run more than once.
* crtstuff.c (__do_global_dtors_aux): Allow finalization code to
        be run more than once.
        * libgcc2.c (__do_global_dtors): Ditto.

From-SVN: r13023
1996-10-24 01:23:43 +00:00
Jason Merrill
fe1fd35341 irix6 ctors
From-SVN: r12971
1996-10-16 20:25:25 +00:00
Mike Stump
843e83356c libgcc2.c (__throw): New routine.
* libgcc2.c (__throw): New routine.
        (__eh_pc): New data object for exception handling.

        * except.c (eh_saved_pc): New object so we can call
        assemble_external.
        (expand_internal_throw_indirect): Call assemble_external for
        __eh_pc.
        (end_eh_unwinder): Ditto.
        (init_eh): Initialize eh_saved_pc.
fixes eh6.C on rs6000 and alpha

From-SVN: r12646
1996-08-16 00:52:06 +00:00
Mike Stump
6adb4e3a29 install EH code
From-SVN: r12549
1996-07-23 20:03:47 +00:00
Mike Stump
0f41302f47 formatting tweaks
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Richard Kenner
2e06e616a7 (__dummy): New function.
From-SVN: r11574
1996-03-20 08:11:20 -05:00
Richard Kenner
8b7677befe (L_bb/atexit, onexit): Declarations replaced by #include'ing "gbl-ctors.h".
(L_exit/atexit): New function.
(L_exit/exit): Call any registered functions.

From-SVN: r11432
1996-03-04 18:46:29 -05:00
Michael Meissner
6b8149a1c8 Make libgcc2 build under AIX3.2.5
From-SVN: r11171
1996-02-03 01:22:40 +00:00
Richard Kenner
9bb89050a9 (_bb_init_prg): Cast arg to bzero to (char *).
From-SVN: r10889
1995-12-27 17:54:27 -05:00
Richard Kenner
90b4a76470 (struct bb): Add flags field.
(HAVE_POPEN): Test new define.
(struct __bb, struct bb_{edge,func}): New structs.
(__bb_init_{prg,file},__bb_{init,exit}_trace_func,__bb_trace_ret,
(__bb_trace_func{,_ret},gopen,gclose): New functions.

From-SVN: r10850
1995-12-24 17:42:24 -05:00
Mike Stump
8fa6b6c92c libgcc2.c (__empty): An empty function used by the C++ frontend for defaulting cleanup actions.
* libgcc2.c (__empty): An empty function used by the C++ frontend for
	defaulting cleanup actions.

	* tree.c (save_tree_status, restore_tree_status): Save and restore
	temporary_firstobj, so that in progress objects that live on the
	temporary obstack are not reallocated, if we save and restore the
	tree status in their lifetime.

From-SVN: r10799
1995-12-18 17:42:56 +00:00
Richard Kenner
f5ea9817c4 (trampoline): Add getpagesize and mprotect for WINNT.
From-SVN: r10605
1995-11-26 14:41:43 -05:00
Richard Kenner
b667f58fae (__{C,D}TOR_LIST): For AIX...
(__{C,D}TOR_LIST): For AIX, initialize these arrays to 0,0, just like
NeXT to avoid a warning message from the AIX 4.1 linker.

From-SVN: r10567
1995-11-07 10:53:03 -05:00
Richard Kenner
139eda626f (L_eh: __unwind_function): Implement for VAX.
From-SVN: r10539
1995-10-29 07:42:53 -05:00
Richard Kenner
c6e84dc484 (__unwind_function): Provide a default definition for implementations
that don't yet have a function unwinder.

From-SVN: r10524
1995-10-26 19:24:58 -04:00
Richard Kenner
c07e26bda2 (__fixuns[xds]fsi): #undef MIN and MAX before #include of limits.h.
From-SVN: r10506
1995-10-22 08:01:32 -04:00
Richard Kenner
ce13d15fbc (__udiv_w_sdiv): If we don't have sdiv_qrnnd, define dummy variant of
__udiv_w_sdiv.

From-SVN: r10476
1995-10-19 18:48:45 -04:00
Richard Kenner
536bfcd040 Include longlong.h.
[L_udivdi3 || L_divdi3 || L_umoddi3 || L_moddi3] (__udivmoddi4):
Define this `static inline' when defining these, so they all remain
leaf functions.

From-SVN: r10305
1995-08-31 19:26:53 -04:00
Richard Kenner
abc95ed36d Fix spelling errors.
From-SVN: r10289
1995-08-28 06:54:22 -04:00
Richard Kenner
a35311b035 Update FSF address.
From-SVN: r9961
1995-06-15 07:52:21 -04:00
Richard Kenner
cac896d8de (_floatdidf): Correctly set float sizes.
From-SVN: r9920
1995-06-10 09:04:45 -04:00
Richard Kenner
fd4cb6b020 (L_eh, i386): Remove in-line comments in assembly code--the '#'
character is not valid for the SYSV as.

From-SVN: r9817
1995-05-25 07:35:27 -04:00
Richard Kenner
9faa82d8c0 Fix typos in comments.
From-SVN: r9712
1995-05-16 08:39:54 -04:00
Jason Merrill
daefd78b4c Update weak symbol support
From-SVN: r9697
1995-05-16 01:02:59 +00:00
Jason Merrill
545bcf37d1 weaken C++ free-store functions
From-SVN: r9392
1995-04-16 06:17:34 +00:00
Jason Merrill
7e6f1890c8 Remove explicit 0-initializations of static variables.
From-SVN: r9269
1995-03-30 23:51:30 +00:00
Mike Stump
e46540c368 * libgcc2.c (__throw_type_match): Update to use new calling convention.
From-SVN: r9254
1995-03-30 00:10:54 +00:00
Mike Stump
47c0d9de92 * libgcc2.c (__register_exceptions): Handle empty tables.
From-SVN: r9200
1995-03-18 02:31:09 +00:00
Michael Meissner
8a552066c6 Do not initialize the pointer variable __new_handler with an address.
From-SVN: r9129
1995-03-08 15:21:52 +00:00
Michael Meissner
bf18d0315a Clone unwind_function for powerpc
From-SVN: r9103
1995-03-01 20:30:14 +00:00
Richard Kenner
c84b672ea9 (atexit): Prototype now works with NT.
From-SVN: r9016
1995-02-21 18:55:37 -05:00
Mike Stump
71a810956e rs6000 exception handling support
From-SVN: r8970
1995-02-18 21:05:17 +00:00
Mike Stump
1e58f10757 tweak __unwind_function for bsdi
From-SVN: r8969
1995-02-18 20:52:11 +00:00
Richard Kenner
3a5ece659c Repair botch in application of patch.
From-SVN: r8956
1995-02-15 13:03:30 -05:00
Doug Evans
5fd507a942 (exit): Don't call __do_global_dtors if
INIT_SECTION_ASM_OP and OBJECT_FORMAT_ELF.

From-SVN: r8946
1995-02-13 23:22:38 +00:00
Jason Merrill
2c62c124a7 Don't call write ifdef inhibit_libc.
From-SVN: r8941
1995-02-13 22:08:25 +00:00
Jim Wilson
3f3d2ec8db (L_fixunsxfsi, L_fixunsdfsi, L_fixunssfsi): Undef
normal types before including limits.h.

From-SVN: r8913
1995-02-11 15:26:09 -08:00
Ian Lance Taylor
a99598c904 Include <limits.h>, not "glimits.h".
From-SVN: r8841
1995-01-31 18:28:04 +00:00
Richard Kenner
a83106c08a (__lshldi3): Deleted.
From-SVN: r8831
1995-01-27 20:56:50 -05:00
Steve Chamberlain
8572e7ce39 *** empty log message ***
From-SVN: r8736
1995-01-12 16:18:12 +00:00
Steve Chamberlain
b799cfc33b *** empty log message ***
From-SVN: r8735
1995-01-12 16:13:44 +00:00
Richard Kenner
a07805c01c (word_type): Use __attribute__ ((mode (__word__))).
From-SVN: r8583
1994-11-30 15:48:22 -05:00
Mike Stump
5603182320 libgcc2.c (__register_exceptions): Find max ending of a segment for end, not min.
* libgcc2.c (__register_exceptions): Find max ending of a segment for
        end, not min.
        * libgcc2.c (__unwind_function): New function to support stack
        unwinding on i[34]86 for g++ exception handling.

From-SVN: r8571
1994-11-29 01:33:07 +00:00
Jason Merrill
68d69835ac Shared library support.
From-SVN: r8519
1994-11-19 04:09:58 +00:00
Ian Lance Taylor
f76b9db287 Check target endianness at run time, not compile time
From-SVN: r8470
1994-11-16 21:10:09 +00:00
Jason Merrill
efc955c77f (LIB2FUNCS): Add _pure.
From-SVN: r8333
1994-10-21 19:14:08 +00:00
Mike Stump
ad912eec58 * Makefile.in, libgcc2.c (L_eh): some support routines for C++.
From-SVN: r8144
1994-09-27 19:42:40 +00:00
Richard Kenner
b077f3ac2f Add declaration of ctime.
From-SVN: r7824
1994-07-29 19:04:10 -04:00
Jason Merrill
566b213ab1 Reverse order of execution of
destructor lists.

From-SVN: r7817
1994-07-29 19:03:37 +00:00
Richard Kenner
d9e1ab8d4e (__floatdisf): Protect against double-rounding error.
From-SVN: r7431
1994-06-02 18:10:30 -04:00
Richard Kenner
b89a6f69c3 (__umoddi3): Correct type of variable `w'.
From-SVN: r7324
1994-05-17 18:56:16 -04:00
Richard Kenner
b2bf5aef7a Revert to identifiers for mode attributes.
From-SVN: r7282
1994-05-12 15:48:39 -04:00
Richard Kenner
d5c88b0ab9 Clarify license status.
From-SVN: r7169
1994-04-28 18:29:12 -04:00
Jason Merrill
4c5484839a Change _op_vec_decl to _op_vdel and _op_vec_new to _op_vnew
From-SVN: r7161
1994-04-27 07:19:33 +00:00
Jason Merrill
75ea7910de (LIB2FUNCS): Change _op_vec_delete to _op_vec_del.
From-SVN: r7064
1994-04-18 18:37:25 +00:00
Jason Merrill
6ffe3a3224 libgcc2.c (__builtin_vec_{delete,new}): New functions per the latest C++ working paper.
* libgcc2.c (__builtin_vec_{delete,new}): New functions per the
        latest C++ working paper.
        (__default_new_handler): No longer static.
        (__set_new_handler): Lose.

From-SVN: r7043
1994-04-13 01:18:43 +00:00
Richard Kenner
c5df463e3b Include <mach.h>, not <mach/mach.h> for NeXTStep 2.1.
From-SVN: r7008
1994-04-09 15:02:49 -04:00
Jim Wilson
6b98c8f4db Modify all uses of __attribute__ mode to use new syntax.
From-SVN: r6956
1994-04-01 09:06:56 -08:00
Jim Wilson
8717efcef1 Change "gstddef.h" to <stddef.h>.
From-SVN: r6943
1994-03-31 21:28:27 -08:00
Doug Evans
3bd4f3b8c9 (__builtin_saveregs): Fix return type.
From-SVN: r6837
1994-03-21 21:20:56 +00:00
Richard Kenner
442e881d89 (__builtin_new): If __new_handler returns, keep trying to allocate the memory.
(__default_new_handler): Add __ to beginning of name to avoid namespace
clashing.

From-SVN: r6506
1994-02-08 19:19:53 -05:00
Richard Stallman
1d42e1b7cf (__bb_exit_func): Fix format %*d -> %*ld.
From-SVN: r6145
1993-11-23 22:01:14 +00:00
Richard Kenner
0c8ae3d30b (__enable_execute_stack): Add DolphinOS version.
From-SVN: r6136
1993-11-21 15:38:55 -05:00
Richard Stallman
003be45548 (exit): Fix declaration of _exit.
From-SVN: r5980
1993-11-03 20:08:08 +00:00
Richard Stallman
6aadf9c227 (___builtin_saveregs): New alternative for __PARAGON__.
From-SVN: r5907
1993-10-26 23:29:45 +00:00
Richard Stallman
ebd4130940 (L_bb): Undef NULL before including <stdio.h>.
From-SVN: r5880
1993-10-25 01:42:49 +00:00
Kresten Krab Thorup
c1381fd357 (__enable_execute_stack): Add case for NeXT/__MACH__.
From-SVN: r5394
1993-09-22 17:44:56 +00:00
Kresten Krab Thorup
e117897348 (__clear_cache): add case for new CLEAR_INSN_CACHE.
From-SVN: r5391
1993-09-22 17:43:00 +00:00
Richard Stallman
c7544ff7ae (L_bb): Test inhibit_libc.
From-SVN: r5383
1993-09-22 02:33:56 +00:00
Richard Stallman
96fc2623de Declare __fixunsxfdi only if really have XFmode.
Likewise for __fixunstfdi.

From-SVN: r5349
1993-09-18 00:39:21 +00:00
Richard Stallman
cc3cdac3bb Declare __fixunstfdi.
From-SVN: r5333
1993-09-15 22:09:57 +00:00
Richard Stallman
f70ad14cb4 Declare __fixunsxfdi.
From-SVN: r5325
1993-09-15 13:30:09 +00:00
Michael Meissner
3cca99e839 Add spaces in basic block output.
From-SVN: r5250
1993-09-02 10:55:40 +00:00
Michael Meissner
92832bb59a Update basic block profiling.
From-SVN: r5249
1993-09-02 10:50:41 +00:00
Richard Stallman
c06cff95e3 (__main): Use macro SYMBOL__MAIN instead of invoking directly.
From-SVN: r4992
1993-07-26 21:00:16 +00:00
Richard Stallman
56b03d5f89 (__floatdisf): Use DFtype for intermediate values.
From-SVN: r4421
1993-05-11 04:42:22 +00:00
Richard Stallman
e0799b34f8 (XFtype): Do define it, if LONG_DOUBLE_TYPE_SIZE == 96.
(__fixunsxfdi): New function, if LONG_DOUBLE_TYPE_SIZE == 96.
(__fixxfdi, __floatdixf, __fixunsxfsi): Likewise.

From-SVN: r4000
1993-04-04 07:18:03 +00:00
Richard Stallman
24e4939efc Comment fix.
From-SVN: r3564
1993-02-27 20:27:24 +00:00
Richard Stallman
c74d558306 (inhibit_libc): Renamed from inhibit_eprintf.
(L_new_handler): Don't include stdio.h if inhibit_libc.

From-SVN: r3557
1993-02-27 19:12:24 +00:00
Jim Wilson
4be7c28fdd (cmpdi2, ucmpdi2): comparison result type is now word_mode.
From-SVN: r3288
1993-01-19 17:07:04 -08:00
Jim Wilson
19197caa01 Correct typo in comment.
From-SVN: r3240
1993-01-14 11:30:29 -08:00
Michael Meissner
de6cbba6ea Fix ffsdi2 return types.
From-SVN: r3225
1993-01-13 20:36:07 +00:00
Richard Stallman
aa66bd06e4 (_ffsdi2): Use the correct names for structure elements of type DIunion.
From-SVN: r3217
1993-01-13 04:30:11 +00:00
Paul Eggert
a1c3776604 # Fix misspellings in comments.
From-SVN: r3182
1993-01-10 22:33:45 +00:00
Torbjorn Granlund
7bc7d45a25 (__udiv_w_sdiv): Replace hard-coded constants 31 with (SI_TYPE_SIZE - 1).
From-SVN: r3146
1993-01-07 21:46:47 +00:00
Jim Wilson
ec06f00ad6 (L_builtin_new): Change to L_op_new.
(L_builtin_new): Change to L_op_new.  Use new style
definition for __builtin_new.
(L_caps_New): Change to L_new_handler.  Delete unused function
builtin_vec_new.
(L_builtin_del): Change to L_op_delete.  Delete vfp declaration.
Use new style definition for __builtin_delete.  Delete unused
function __builtin_vec_delete.

From-SVN: r3021
1992-12-31 13:10:50 -08:00
Richard Stallman
30de5e95fa (__udiv_w_sdiv): Cast 1 before shifting by 31.
From-SVN: r2809
1992-11-26 19:05:38 +00:00
Richard Stallman
98126ed6a4 (__builtin_vec_new): #undef NULL before including stdio.h.
(pyramid __enable_execute_stack): Ditto.

From-SVN: r2668
1992-10-31 21:26:20 +00:00
Michael Meissner
e45d9b98ee Properly close comment.
From-SVN: r2628
1992-10-28 15:56:23 +00:00
Richard Stallman
fffa69145b Include stdio.h.
[__GNU_LIBRARY__] (write): Defined.

From-SVN: r2625
1992-10-27 22:53:58 +00:00
Richard Stallman
d15d0264a9 [L_ctors] (__CTOR_LIST__, __DTOR_LIST__):
Initialize these default definitions if __NeXT__.

From-SVN: r2472
1992-10-15 08:25:16 +00:00
Richard Stallman
78e3321337 (__gcc_bcmp): Don't depend on signedness of `char'.
From-SVN: r2465
1992-10-15 05:04:48 +00:00
Richard Stallman
bba2431c5d (__eprintf): Do nothing if inhibit_eprintf is defined.
From-SVN: r2289
1992-10-01 03:34:27 +00:00
Richard Stallman
bcea218548 (__builtin_new): Avoid passing 0 to malloc.
From-SVN: r2267
1992-09-28 13:43:23 +00:00
Richard Stallman
ad38743d79 (exit): Declare _exit as volatile.
(__CTOR_LIST__, __DTOR_LIST__): Moved to separate member.

From-SVN: r2158
1992-09-19 04:47:11 +00:00
Richard Stallman
9bd23d2c95 (__gcc_bcmp): New function, in cond on L__gcc_bcmp.
From-SVN: r2110
1992-09-12 08:45:46 +00:00
Richard Stallman
ecbe06a11f (__builtin_new): Cast the result of malloc.
From-SVN: r1935
1992-08-23 07:20:15 +00:00
Richard Kenner
05c0fbb8bc (builtin_new): Remove declaration of malloc.
From-SVN: r1868
1992-08-17 07:33:24 -04:00
Richard Stallman
0c7b7f30eb entered into RCS
From-SVN: r1728
1992-07-31 06:29:36 +00:00
Richard Kenner
bfe655f9bf *** empty log message ***
From-SVN: r1617
1992-07-17 08:27:11 -04:00
Richard Kenner
0dadecf681 *** empty log message ***
From-SVN: r1614
1992-07-17 05:57:24 -04:00
Torbjorn Granlund
3904131aad *** empty log message ***
From-SVN: r1546
1992-07-09 22:30:59 +00:00
Charles Hannum
258d13563c *** empty log message ***
From-SVN: r1506
1992-07-07 21:40:53 +00:00
Torbjorn Granlund
431b1ee0e0 *** empty log message ***
From-SVN: r1504
1992-07-07 19:58:52 +00:00
Richard Stallman
ab49538861 *** empty log message ***
From-SVN: r1503
1992-07-07 19:46:10 +00:00
Richard Stallman
600032fcf3 *** empty log message ***
From-SVN: r1435
1992-07-04 23:21:06 +00:00
Richard Stallman
c7c0a63523 *** empty log message ***
From-SVN: r1347
1992-06-30 00:35:54 +00:00
Richard Stallman
27d21d3283 *** empty log message ***
From-SVN: r1288
1992-06-26 02:43:09 +00:00
Richard Stallman
b6422cca6e *** empty log message ***
From-SVN: r893
1992-05-05 01:46:51 +00:00
Richard Stallman
73a3e4ab83 *** empty log message ***
From-SVN: r646
1992-03-31 09:11:23 +00:00
Richard Stallman
b1166faeb0 *** empty log message ***
From-SVN: r620
1992-03-29 03:21:13 +00:00
Tom Wood
b335c2ccab *** empty log message ***
From-SVN: r526
1992-03-19 20:41:45 +00:00
Richard Stallman
135461d960 *** empty log message ***
From-SVN: r408
1992-03-07 04:39:10 +00:00
Richard Stallman
89cf554bda *** empty log message ***
From-SVN: r309
1992-02-12 17:47:31 +00:00
Richard Stallman
203b91b92d Initial revision
From-SVN: r243
1992-01-28 03:44:05 +00:00