Alexander Kabaev
f92e37bda1
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.8 printf format error fixes
Approved by: obrien
2002-09-17 04:16:58 +00:00
Alexander Kabaev
acfad454a6
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.2 Localize the version number
Approved by: obrien
2002-09-17 04:15:43 +00:00
Alexander Kabaev
f40fb3f3fd
Use the stock 3.2.1-prerelease file.
...
Approved by: obrien
2002-09-17 04:14:38 +00:00
Alexander Kabaev
b8bb8eab99
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.2 framework for our kernel printf enhancements
1.3 suppress prototype warning for K&R main
Approved by: obrien
2002-09-17 04:10:25 +00:00
Alexander Kabaev
2e88fa161b
This commit was generated by cvs2svn to compensate for changes in r103445,
...
which included commits to RCS files with non-trunk default branches.
2002-09-17 04:03:37 +00:00
Alexander Kabaev
acabf91c96
Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on 16-Sep-2002 13:23:11 EDT.
2002-09-17 04:03:37 +00:00
David E. O'Brien
3b812710d0
Emacs decides between v8 and v9 based on "__arch64__". So define it.
...
Desired by: tmm
2002-09-12 17:19:09 +00:00
David E. O'Brien
4d90773dea
Remove some debugging cruft I accidently committed with rev 1.4.
2002-09-12 16:10:21 +00:00
David E. O'Brien
b9cab93186
Try to detect support for the `long long' type so that ANSI-C[89] clean
...
code will know not to try to use `long long'.
Unfortunately the GCC spec parser will not allow us to properly detect the
"iso9899:1990" and "iso9899:199409" forms of the acceptable -std= arguments,
because of the ':' in the -std argument. :-( I have left them in the spec
as a place holder in hopes someone knows a way to make the detection of
them work.
Desired by: wollman
2002-09-12 16:05:56 +00:00
David E. O'Brien
04d8170094
Bump __FreeBSD_cc_version for gcc 3.1-prerelease -> 3.2.1-snap upgrade.
2002-09-09 06:56:29 +00:00
Alexander Kabaev
6a10d74be1
Revert rev. 1.2. GCC 3.2 seems to have builtin_memset fixed.
...
Approved by: obrien
2002-09-01 21:18:18 +00:00
Alexander Kabaev
7055348d02
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.8 printf format error fixes
Approved by: obrien
2002-09-01 21:16:14 +00:00
Alexander Kabaev
ed7ada7c10
Use the stock 3.2.1-prerelease file.
...
Approved by: obrien
2002-09-01 21:13:32 +00:00
Alexander Kabaev
b00eee8d85
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.10 -mno-align-long-strings
1.11 Allow the specification of LONG_TYPE_SIZE on the command line.
Approved by: obrien
2002-09-01 21:12:30 +00:00
Alexander Kabaev
7d6e8a6ad0
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.11 -mno-align-long-strings
Approved by: obrien
2002-09-01 21:11:35 +00:00
Alexander Kabaev
35d17d433c
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.8 Change symbol values to match freebsd.h
Approved by: obrien
2002-09-01 21:09:26 +00:00
Alexander Kabaev
2556bafc14
Use the stock 3.2.1-prerelease file.
...
Approved by: obrien
2002-09-01 21:08:29 +00:00
Alexander Kabaev
4dccc39462
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.2 Localize the version number
Approved by: obrien
2002-09-01 21:07:09 +00:00
Alexander Kabaev
f2f9e41da3
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.2 -fformat-extensions
1.7 optimization downgrade
1.14 -O0 -O1 should optimize alignment for time, not size
Approved by: obrien
2002-09-01 21:06:42 +00:00
Alexander Kabaev
a8a3b181ed
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.\{2,15\} FREEBSD_NATIVE
1.\{5,13\} ELF, and objformat support
1.\{16,23,25\} Better cross building control
1.21 'GCC_OPTIONS'
1.27 cross-arch MD_EXEC_PREFIX fixes
cc -print-search-dir fixes
1.28 Read specs from /usr/libdata/gcc/specs,
if available
Approved by: obrien
2002-09-01 21:03:33 +00:00
Alexander Kabaev
ec748e0ef8
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.2 a.out support
Approved by: obrien
2002-09-01 21:02:41 +00:00
Alexander Kabaev
e243da3452
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.2 do not create paradoxical FLOAT_MODE subregs
I am not sure if this is still required.
Approved by: obrien
2002-09-01 21:01:12 +00:00
Alexander Kabaev
accb351070
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.2 kernel printf enchancements framework
Approved by: obrien
2002-09-01 20:57:33 +00:00
Alexander Kabaev
4e9f9a848d
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.2 don't let gcc(1) hide warnings in system headers.
Approved by: obrien
2002-09-01 20:56:10 +00:00
Alexander Kabaev
449bacd8c3
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
...
1.2 kernel printf enchancements framework
1.3 suppress warnings on K&R main
Approved by: obrien
2002-09-01 20:53:28 +00:00
Alexander Kabaev
f3575d94a6
Use the stock 3.2.1-prerelease file.
...
Approved by: obrien
2002-09-01 20:49:59 +00:00
Alexander Kabaev
bb3c979bf5
Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on 1-Sep-2002 00:00:01 EDT.
2002-09-01 20:38:57 +00:00
Alexander Kabaev
6be6d6640a
This commit was generated by cvs2svn to compensate for changes in r102780,
...
which included commits to RCS files with non-trunk default branches.
2002-09-01 20:38:57 +00:00
Ruslan Ermilov
26e1070b8b
Merge gcc.295/cccp.c,v 1.9: don't let gcc(1) hide warnings in system headers.
...
Reviewed by: bde
Original 2.95 change was subject to:
Approved by: obrien
2002-08-15 08:45:49 +00:00
David E. O'Brien
83728effa9
Fix C++ exception handling. GCC was using the older BSD DBX register numbers
...
rather than the ELF ABI/SVR4 ones in its DWARF unwinding.
Submitted by: Alexander Kabaev <ak03@gte.com>
2002-07-12 17:44:24 +00:00
David E. O'Brien
d08a3fc2bc
When I decided to use a stock dbxout.c rather than merge the rev 1.2 change
...
(put the function stabs in traditional order on a.out, or gdb doesn't see
function local variables), I failed to remove the related knobs here.
Effectively were overrode the ELF-wide definition in elfos.h w/o providing
new infrastructure. This is what caused GDB to fail to debug applications
compiled and linked with -stabs. This is because GCC was unconditionally
inserts .stabs instruction for functions after the function body. GDB was
getting confused because what it thinks is function beginning address is
actually function ending address.
Submitted by: Alexander Kabaev <ak03@gte.com>
2002-07-12 17:35:35 +00:00
David E. O'Brien
568fc330a7
Yep, revision 1.3 was 1/2assed.
...
This time use the right attribute for null_format_ok.
Submitted by: bde
2002-07-12 00:49:52 +00:00
David E. O'Brien
fffe57845a
Allow XFree86-4 to build
...
by not creating paradoxical FLOAT_MODE subregs.
Tested by: se
Obtained from: http://gcc.gnu.org/ml/gcc/2002-06/msg01709.html
2002-07-03 23:35:06 +00:00
David E. O'Brien
6c8ce4b3c7
Tweaks to make these files live beside our hacked config.
2002-06-21 22:54:24 +00:00
David E. O'Brien
d9adce40ed
Tweaks for the 64-bit compiler.
2002-06-21 22:53:03 +00:00
David E. O'Brien
4396d0e99f
cc -O0 and -O1 didn't do the easy optimization of alignment for space.
...
Instead it attempted to do the easy optimization of alignment for time,
which should be to 1-byte alignment on i386's.
Submitted by: bde
2002-06-21 18:21:30 +00:00
David E. O'Brien
9fc5b9d958
BDE prefers this organization.
...
Submitted by: bde
2002-06-21 18:11:22 +00:00
David E. O'Brien
85441ab5f2
cvs -j -j gave me two copies of TARGET_VERSION and I didn't notice
...
it before committing.
2002-06-10 15:48:23 +00:00
David E. O'Brien
60f9b09d26
Allow one to profile FORTRAN77 programs.
2002-06-09 00:03:56 +00:00
David E. O'Brien
4467cfa4b4
Match the DBX_OUTPUT_MAIN_SOURCE_FILE_END definition in dbxelf.h.
...
Bug found by: bde
2002-06-06 18:00:58 +00:00
David E. O'Brien
0d68a433ae
Allow the specification of LONG_TYPE_SIZE on the command line.
...
Submitted by: bde
2002-06-06 03:39:03 +00:00
David E. O'Brien
670fd7ad58
Implement "-mno-align-long-strings" which prevents pessimization of strings
...
for space. -Os could do this, but it was easy to hack an MD version.
This saves a whole 32 bytes in boot2, so I think it is worth using it.
(keep how much worse gcc 3.2 will compile boot2...)
Submitted by: bde (minus gcc 3.2 commentary)
2002-06-06 03:36:32 +00:00
David E. O'Brien
a56822dd07
Didn't get them all in revision 1.50.
2002-06-06 03:30:40 +00:00
David E. O'Brien
c48e5a6b24
Fix excessive alignment for the aout case, and unbreak genassym for that case.
...
Our aout linker has alignment hacks and doesn't need gcc to do anything special.
Tested for a year by: bde :-)
2002-06-06 03:28:49 +00:00
David E. O'Brien
3c3942fcfc
Tidy do-while.
...
Requested by: bde
2002-06-06 03:26:36 +00:00
David E. O'Brien
74d3af89ef
Read specs from /usr/libdata/gcc/specs if it exists.
2002-06-06 00:49:58 +00:00
David E. O'Brien
3a77dcde47
The brokenness in ix86_expand_clrstr is quite visible when you
...
compare the function with ix86_expand_movstr.
Submitted by: Tor Egge
2002-06-04 18:06:12 +00:00
David E. O'Brien
ec9ec8af6a
Gcc 3.1 (-O) now generates broken inline code for memset in some cases.
...
This broke newfs (newfs left some garbage in a bitmap).
The ASM for:
#include <string.h>
int x, foo[100];
main()
{
memset(&foo[0], 0, x);
}
is (at least if you have fixed function alignment):
.file "z.c"
.text
.p2align 2,,3
.globl main
.type main,@function
main:
pushl %ebp
movl %esp, %ebp
pushl %edi
pushl %eax
movl x, %ecx
xorl %eax, %eax
shrl $2, %ecx
movl $foo, %edi
cld
rep
stosl
andl $-16, %esp
<-- the lower bits of `len' should be loaded
near here
testl $2, %edi <-- this seems to be meant to test the 2^1
bit in `len' (not alignment of the pointer
like it actually does). %edi is the wrong
register for holding the bits, since it is
still needed for the pointer.
je .L2
stosw
.L2:
testl $1, %edi <-- similarly for the 2^0 bit.
je .L3
stosb
.L3:
movl -4(%ebp), %edi
leave
ret
.Lfe1:
.size main,.Lfe1-main
.comm foo,400,32
.comm x,4,4
.ident "GCC: (GNU) 3.1 [FreeBSD] 20020509 (prerelease)"
This seems to only result in (len % 3) bytes not being cleared, since gcc
doesn't seem to use the builtin memset unless it knows that the pointer is
aligned. If %edi could be misaligned, then too many bytes would be set.
Submitted by: BDE
2002-06-04 18:04:27 +00:00
David E. O'Brien
e07ec61d37
Seems we are not ready for revision 1.8.
2002-05-30 06:04:14 +00:00
David E. O'Brien
69eafeae74
Make our default predefines ANSI clean.
2002-05-30 00:58:35 +00:00