Commit Graph

249 Commits

Author SHA1 Message Date
obrien
cbf1ad1c72 This commit was generated by cvs2svn to compensate for changes in r52878,
which included commits to RCS files with non-trunk default branches.
1999-11-04 10:35:02 +00:00
obrien
a252558aba Merge rev 1.2 [_exit() over exit()] into GCC 2.95.1. 1999-11-04 10:26:31 +00:00
obrien
eb5e8caab7 Merge rev 1.2 (use /tmp 1st, and then /var/tmp) into GCC 2.95.1. 1999-11-04 10:23:25 +00:00
obrien
a2002c935c Virgin import from GCC 2.95.1.
As of GCC 2.95 these files:
	choose-temp.c  demangle.h   getopt.h    obstack.c  pexecute.c
	cplus-dem.c    getopt.c     getopt1.c   obstack.h

were removed from the GCC compilers proper to libiberty.  To continue our
revision history, and to keep from having to import all of libiberty,
they are imported here as if they were never moved.
1999-11-04 10:20:05 +00:00
obrien
2c20d04b86 This commit was generated by cvs2svn to compensate for changes in r52874,
which included commits to RCS files with non-trunk default branches.
1999-11-04 10:20:05 +00:00
obrien
a6091f0a42 Structure field name changed. 1999-11-03 12:33:56 +00:00
obrien
7c732ab5d0 This brings rev 1.2 (reality check and document profiling extensions)
into GCC 2.95.2.
1999-11-01 20:09:07 +00:00
obrien
68ba60f301 This adds rev 1.2 (-fformat-extensions) to GCC 2.95.2. 1999-11-01 19:51:19 +00:00
obrien
929a892c18 Merge rev 1.2 (a.out support) into GCC 2.95.2. 1999-11-01 18:56:02 +00:00
obrien
60685dfcfd Add Alpha and proper x86 support to GCC 2.95.2.
[ Functionally speaking, this covers revs 1.{2,3} ]
1999-11-01 18:53:45 +00:00
obrien
69611a5db3 Merge our -fformat-extensions and printf0() into GCC 2.95.2. 1999-11-01 18:41:09 +00:00
obrien
4b66dfb903 Virgin import of the GCC 2.95.2 compilers 1999-11-01 08:28:22 +00:00
obrien
244fe162cc This commit was generated by cvs2svn to compensate for changes in r52750,
which included commits to RCS files with non-trunk default branches.
1999-11-01 08:28:22 +00:00
obrien
321582243d Use the stock file for now. 1999-10-27 09:45:47 +00:00
obrien
b0e43a5cf6 s brings rev 1.2 (document printf0()) into GCC 2.95.1. 1999-10-27 09:41:10 +00:00
obrien
d1a4530efd This brings rev 1.2 (reality check and document profiling extensions)
into GCC 2.95.1.
1999-10-27 09:37:24 +00:00
obrien
1292393efe This adds rev 1.2 (-fformat-extensions) to GCC 2.95.1. 1999-10-27 09:31:52 +00:00
obrien
05270b6462 Use the stock file. 1999-10-27 09:23:37 +00:00
obrien
574b483e89 Use the stock file now. 1999-10-26 09:17:58 +00:00
obrien
00201b83e6 Merge the FREEBSD_NATIVE and ELF/a.out support into GCC 2.95.1. 1999-10-26 09:13:47 +00:00
obrien
d169fbae43 Fix conflicts. 1999-10-26 08:57:00 +00:00
obrien
be3662861f Merge rev 1.2 (a.out support) into GCC 2.95.1. 1999-10-26 08:53:03 +00:00
obrien
83aa1e1aef Merge our changes - this brings rev 1.2 (fix stabs ordering for a.out)
into GCC 2.95.1.
1999-10-26 08:47:58 +00:00
obrien
bdaadca7c0 Merge our changes - this brings rev 1.2 (-fformat-extensions)
into GCC 2.95.1.
1999-10-26 08:45:23 +00:00
obrien
8db9511c04 Merge our changes - this brings revs 1.{2,3} minus rev 1.4 into GCC 2.95.1. 1999-10-26 08:41:38 +00:00
obrien
6ae771fde6 Fix conflicts. (dist src now contains our rev 1.1->1.2 changes) 1999-10-26 08:38:21 +00:00
obrien
bdbbf36ec3 Add Alpha and proper x86 support to GCC 2.95.1.
[ Functionally speaking, this covers revs 1.{2,3} ]
1999-10-16 08:44:43 +00:00
obrien
d7ea7964e7 Merge rev 1.2 (FreeBSD native support -- do not search the multitude of
extended include file paths that do not exist) into GCC 2.95.1.
1999-10-16 08:39:06 +00:00
obrien
9be0b14aaf Go back to stock file -- our mods are OBE. 1999-10-16 08:34:33 +00:00
obrien
c88c634d26 Merge our -fformat-extensions and printf0() into GCC 2.95.1. 1999-10-16 08:28:26 +00:00
obrien
b86ce00be8 Stick with the stock version of this. 1999-10-16 08:21:54 +00:00
obrien
d883fc3415 Use this stock version of this. 1999-10-16 08:13:35 +00:00
obrien
cf3ead1aa1 Use the stock file here. I cannot determine if our previous (rev 1.2)
changes for ObjC are still appropriate.
1999-10-16 08:12:02 +00:00
obrien
4e49c9209b Use stock file here. 1999-10-16 08:10:36 +00:00
obrien
d6efeabb7a Bring our profiling tweaks from rev 1.2 into GCC 2.95.1. 1999-10-16 08:08:21 +00:00
obrien
af6623e278 Merge BDE's printf format error fixes into GCC 2.95.1. 1999-10-16 07:57:37 +00:00
obrien
6fc90f57b3 Use the stock file here. 1999-10-16 07:56:14 +00:00
obrien
ad65a89b33 Use the stock GCC 2.95.1 file here. Our previous (rev 1.2) changes are OBE. 1999-10-16 07:53:19 +00:00
obrien
7f3675d738 Merge rev 1.2 into GCC 2.95.1. 1999-10-16 07:35:28 +00:00
obrien
712aed4e0b Fix conflicts. 1999-10-16 07:12:34 +00:00
obrien
874263d914 Virgin import of the GCC 2.95.1 compilers 1999-10-16 07:10:09 +00:00
obrien
05aa33623b This commit was generated by cvs2svn to compensate for changes in r52287,
which included commits to RCS files with non-trunk default branches.
1999-10-16 07:10:09 +00:00
obrien
cae8fa8120 Virgin import of the GCC 2.95.1 compilers 1999-10-16 06:09:09 +00:00
obrien
8f3bf11ba2 This commit was generated by cvs2svn to compensate for changes in r52284,
which included commits to RCS files with non-trunk default branches.
1999-10-16 06:09:09 +00:00
obrien
fcdace9ad8 Grrrrr. Put the $FreeBSD$ in a Bad Place. 1999-10-15 21:49:40 +00:00
obrien
3dcb5df695 Register the fact we want expand_main_function() to invoke __main. 1999-10-15 20:56:19 +00:00
obrien
eab3fcc626 Merge rev 1.2 (a.out support) into EGCS 1.1.2. 1999-10-15 20:48:35 +00:00
obrien
2f32fb0a0e Return these files back to their stock versions.
These files aren't used in either building GCC or with a GCC installation
in the "FreeBSD native" case.
1999-10-13 15:55:31 +00:00
obrien
9f01c491d0 Virgin import of EGCS 1.1.2 1999-10-12 00:47:56 +00:00
obrien
8032f1899c This commit was generated by cvs2svn to compensate for changes in r52143,
which included commits to RCS files with non-trunk default branches.
1999-10-12 00:47:56 +00:00
obrien
1555d44f14 Remove a useless blank line, I accidently added. 1999-10-12 00:35:49 +00:00
obrien
9f1f03f986 Move RCS tag to our normal place. 1999-10-10 22:43:12 +00:00
obrien
2dc205f241 Style cleanups:
* be consistant on protecting "#define FOO"s with "#undef FOO".
* be consistant that macro params are upper case, and commas are followed
  by a space in the macro definition
* protect macro param expansion by ()'s
* break long lines
* line continuations chars to consistant column
* remove trailing spaces
1999-10-10 22:33:40 +00:00
obrien
76d75beacc Remove things common to all FreeBSD platforms. They will now live in a
FreeBSD wide config file.

This includes "WORD_SWITCH_TAKES_ARG" & "SWITCH_TAKES_ARG".  Platforms
such as FreeBSD/MIPS will need to override these two defintions, but it
can #undef them and define them approapiately.
1999-10-10 22:17:24 +00:00
obrien
aa3f6dfa3a Virgin import of EGCS 1.1.2 1999-10-03 09:19:40 +00:00
obrien
355e1eeeeb This commit was generated by cvs2svn to compensate for changes in r51899,
which included commits to RCS files with non-trunk default branches.
1999-10-03 09:19:40 +00:00
obrien
cef7d41dd5 Virgin import of EGCS 1.1.2 1999-10-02 21:54:32 +00:00
obrien
0858aa3a81 This commit was generated by cvs2svn to compensate for changes in r51885,
which included commits to RCS files with non-trunk default branches.
1999-10-02 21:54:32 +00:00
obrien
a1342c30ed * We have /var/tmp, not /usr/tmp. So use that where EGCS used the latter.
*  In the absence of the env vars TMPDIR, TMP, TEMP (which override this
   ordering), attempt to create temperary files in /tmp, P_tmpdir (/var/tmp),
   /usr/tmp, and .  until successful.
1999-10-02 21:50:07 +00:00
obrien
ae0f17d54a Virgin import of EGCS 1.1.2 1999-10-02 01:46:57 +00:00
obrien
6709241681 This commit was generated by cvs2svn to compensate for changes in r51848,
which included commits to RCS files with non-trunk default branches.
1999-10-02 01:46:57 +00:00
obrien
caa7271ba9 Bring BDE's printf format error fixes into EGCS. 1999-09-19 11:00:01 +00:00
obrien
4e55baf141 Bring our profiling tweaks into EGCS 1.1.2. 1999-09-19 10:43:38 +00:00
obrien
28a04200f0 "COMMENT_BEGIN" is no longer used. 1999-09-19 10:32:18 +00:00
obrien
7d1a76ba11 Support linking against libgcc_r.
Submitted by:	Luoqi Chen <luoqi@chen.ml.org>
1999-09-19 10:31:14 +00:00
obrien
eed2bb0659 This should get us the same functionality we had with GCC 2.7.2.1.
*  Support for our dual ELF/a.out building ability
*  Our custom ASM_* definitions
*  Our custom debugger and profiling related definitions
*  Our custom STARTFILE/ENDFILE specs

*  The stock EGCS 1.1.2 freebsd-elf.h file depended on
   egcs-1.1.2/gcc/config/linux.h, which included "svr4.h".  We will
   include "svr4.h" via our "tm.h" definition.  So add the few bits
   from "linux.h" we actually needed.

*  Using our current crtbegin.o/crtend.o we cannot support the DWARF2
   unwinding mechanisms.  In the future we will switch to the
   non-sjlj-exceptions type exception machanism.  However the `make world'
   bootstrap problems with the EGCS crtstuff.c must be overcome first.

*  Our a.out gas doesn't "know" to use NOP's for aligns while in the text
   section.  Thus the a.out alignment generation needed tweaking from
   what we did with GCC 2.7.2.  [from BDE]

*  The definition of SUPPORTS_ONE_ONLY prevents the compiler from trying
   to use "linkonce" sections for a.out.  The definition of
   NO_DBX_FUNCTION_END we had causes it to avoid .stabs symbols that the
   assembler cannot handle for a.out.  [from JDP]

*  The previous "EXCEPTION_SECTION_FUNCTION" is the wrong name for EGCS.
   It also needed tweaking for EGCS.  [from JDP]

Also bump __FreeBSD_cc_version to 400002 in case we need to know we are
using EGCS at some point.
1999-09-19 10:28:57 +00:00
obrien
9fae78db4f Use the stock EGCS version of this. 1999-09-19 09:09:21 +00:00
obrien
cad2b43722 Document the new i386 family options.
Obtained from:	invoke.texi
1999-09-19 09:00:24 +00:00
obrien
385f21dad7 Document -Os optimization. Add to -O{0,2} documentation.
Obtained from:	invoke.texi
1999-09-19 08:58:44 +00:00
obrien
2e9bc72c28 Merge revs 1.2-1.11 (doc fixes and updates to reflect reality) into the
EGCS 1.1.2 manpage.
1999-09-19 08:56:04 +00:00
obrien
8e8efb3bd5 Merge rev 1.2 docs fixes into EGCS 1.1.2's manpage. 1999-09-19 08:18:18 +00:00
obrien
0ecfea2ee8 Fix conflicts. This has a small part of rev 1.2 in it. 1999-09-18 11:14:59 +00:00
obrien
b93c24d42b Fix conflicts. This merges revs 1.{2,3} with EGCS 1.1.2. 1999-09-18 11:02:28 +00:00
bde
4f52cde87f Merge from ../egcs/gcc/gcc.c rev.1.5:
Don't exclude directories that the linker is "known" to search (/lib
and /usr/lib) when deciding whether to pass certain paths to the
linker.  Under FreeBSD, the linker is actually known to never search
/lib and to only search /usr/lib in the elf case.  Not passing the
paths causes at best causes confusing differences for cross compiling.
This change is conditional on FREEBSD_NATIVE but should be absolute.
1999-09-13 15:50:16 +00:00
obrien
1307fb8ba8 Use the stock EGCS 1.1.2 file here. Our previous changes are OBE.
(code change by rev 1.3 has been removed, and 1.2 is not needed since
contrib/gcc/cp/except.c is now the stock one)
1999-08-30 10:50:39 +00:00
obrien
ba9b2147f2 Use the stock EGCS 1.1.2 file here. I cannot determine if our previous
changes for ObjC are still appropriate.
1999-08-30 10:27:11 +00:00
obrien
1d16d23ff8 This brings rev 1.2 into EGCS 1.1.2. Also tweaks gleemed from EGCS
ChangeLog's.  Note that rev 1.3 changes (HOST_PTR_PRINTF) was not
brought into EGCS 1.1.2 as that is the default.
1999-08-30 10:12:33 +00:00
obrien
537ee54f88 Fix conflicts. 1999-08-30 09:58:28 +00:00
obrien
903d244211 Use the stock EGCS 1.1.2 file here. Our previous changes are OBE. 1999-08-30 09:54:31 +00:00
obrien
2bce35da0a This add Alpha and proper x86 support to EGCS 1.1.2. Functionally speaking,
this covers revs 1.{2,3}.
1999-08-30 08:41:19 +00:00
obrien
0191a04a93 This brings rev 1.2 (reality check and document profiling extensions)
into EGCS 1.1.2.
1999-08-30 07:51:44 +00:00
obrien
237b828920 This brings rev 1.2 (document printf0()) into EGCS 1.1.2. 1999-08-30 07:38:42 +00:00
obrien
61f8ac135c Fix conflicts. 1999-08-30 07:28:52 +00:00
obrien
308b546022 Fix conflicts.
This adds rev 1.2 (-fformat-extensions) to EGCS 1.1.2.
1999-08-30 04:01:02 +00:00
obrien
1179e4387f Fix conflict. 1999-08-30 01:02:55 +00:00
obrien
48597b2c18 Fix conflicts. 1999-08-30 00:01:36 +00:00
obrien
ec9280070b This brings rev 1.2 (FREEBSD_NATIVE) and rev 1.5 (mixed ELF/aout support)
into EGCS 1.1.2.
1999-08-29 23:53:46 +00:00
obrien
23cf060089 Correct vfork()/exit() to vfork()/_exit().
Also return "1" rather than "-1".  According to bde: -1 is unrepresentable.
Exit statuses must be >= 0 and <= 255, at least if chars are 8 bits and
shorts are 16 bits.  This seems to only be documented indirectly in exit.2
by referring to wait.2.  WEXITSTATUS() throws away all except the low 8 bits
of the status returned by _exit(), and the kernel actually only stores 8
bits of it (if chars are 8 bits, etc.), so wait() can't return any more bits.

Obtained from: rev 1.4 of contrib/gcc/gcc.c
1999-08-29 23:46:20 +00:00
obrien
6ae2479e39 Fix conflicts.
This brings rev 1.2 (-fformat-extensions) into EGCS 1.1.2.
1999-08-28 11:46:53 +00:00
obrien
3a35f41abc Fix conflicts.
This brings revs 1.{2,3} minus rev 1.4 into EGCS 1.1.2.
1999-08-28 11:27:19 +00:00
obrien
f77ff8b800 Fix conflicts. 1999-08-28 08:14:14 +00:00
obrien
c4b74a1764 Fix conflicts. This brings rev 1.2 (fix stabs ordering for a.out) into
EGCS 1.1.2.
1999-08-28 07:19:03 +00:00
obrien
550b040d68 Fix conflicts. This brings in rev 1.2 (FreeBSD native support -- do not
search the multitude of extended include file paths that do not exist)
into EGCS 1.1.2.
1999-08-27 11:02:42 +00:00
obrien
b1e989f610 Fix conflicts. This brings the "printf0" addition into EGCS 1.1.2. 1999-08-27 10:58:48 +00:00
obrien
e7996da3fa Don't accept %q length specifiers in the kernel (more precisely,
if compiling with -fformat-extensions). Gcc's format checker never
actually supported %q length specifiers.  It treats %q as an alias
for %ll, which is correct if quad_t is long long (e.g., on i386's)
and broken otherwise (e.g., on alphas).

quad_t's currently should be printed in the same way that they
already need to be printed to avoid compiler warnings on all
supported systems: cast them to a standard type that is at least
as large (long or long long) and use the length specifier for that
(%l or %ll).  This is problematic since long long isn't standard
yet.  C9x's intmax_t should be implemented soon.

Don't accept %L length specifiers in the kernel either.  The only
legitimate ones are for long doubles, but the kernel doesn't even
support plain doubles.  (gcc bogusly accepts %Ld as an alias for
%lld, and it sometimes prints "q" in error messages about "ll" and
"L" length specifiers, becauses it represents all these specifiers
as 'q'.)

Submitted by:	bde
1999-08-27 10:05:08 +00:00
obrien
a774007e84 Fixed kernel format checking:
- plain %r and %z were disallowed.  The hard NULs in the warnings were
  hopefully caused by disallowing of plain formats being nonsense.
- new formats for shortening to a byte were allowed, but even the libc
  printf doesn't support them.
- old %hr and %hz formats were allowed, but the kernel printf doesn't
  support them.  The kernel doesn't support %hd either, but this is
  harder to fix.

Submitted by:	bde
1999-08-27 10:02:56 +00:00
obrien
2f0dd791ee Fix conflicts.
This brings revs 1.2 (-fformat-extensions) and 1.3 (printf0())
into EGCS 1.1.2.
1999-08-27 10:01:05 +00:00
obrien
426fcb8f55 Fix conflicts. 1999-08-27 09:36:15 +00:00
obrien
0bedf4fb30 Virgin import of gcc from EGCS 1.1.2 1999-08-26 09:30:50 +00:00
obrien
ad6db0c2d6 This commit was generated by cvs2svn to compensate for changes in r50397,
which included commits to RCS files with non-trunk default branches.
1999-08-26 09:30:50 +00:00