mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
c1b1010ad0
want higher optimization levels result in unsafer binaries).
Fix bug, that causes core dumps when using higher optimization levels
than -O2.
Results with dhrystone 2.1 (1000000
loops):
stock cc (2.7.2.1 from current) : 136k (136xxx)
pgcc-current with -O2 : 138k
pgcc-current with -O6 : 172k
And no coredump anymore. Reason for coredump:
With -O3 cc1 does an register-to-register-copy optimization and it tries
to write some debugging information about what it is doing into a file
that does not exist unless you have instructed cc1 to dump all its
information about its internal state. (From: Sascha Blank)
BTW: PLIST is really coming soon, it's on my todo list ;-)
BTW2: Is Sascha already in the contributors list ? Have to go to work now.
Submitted by: Sascha Blank <blank@sliphost37.uni-trier.de>
20 lines
477 B
Plaintext
20 lines
477 B
Plaintext
*** toplev.c.orig Mon Dec 2 16:30:20 1996
|
|
--- toplev.c Mon Dec 2 16:30:37 1996
|
|
***************
|
|
*** 3387,3393 ****
|
|
});
|
|
|
|
/* intel1 */
|
|
! if(optimize > 0 && flag_reg_reg_copy_opt)
|
|
{
|
|
reg_to_reg_copy_opt(insns, global_reg_dump_file);
|
|
}
|
|
--- 3387,3393 ----
|
|
});
|
|
|
|
/* intel1 */
|
|
! if(optimize > 0 && flag_reg_reg_copy_opt && global_reg_dump)
|
|
{
|
|
reg_to_reg_copy_opt(insns, global_reg_dump_file);
|
|
}
|