History log of /openbsd-current/gnu/gcc/gcc/opts.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_6_2_BASE
# 1.9 24-Jul-2017 kettenis

Make gcc accept -Oz as an alias for -Os for compatibility with clang.

With clang -Os doesn't generate the smallest code possible but some middle
ground between optimization for speed and optimization for size. A new -Oz
option was introduced for optmization for size only. We need that for our
floppies, otherwise they overflow. Making gcc accept -Oz too makes our life
easier.

ok millert@, deraadt@, robert@


# 1.8 08-May-2017 espie

gcc 4.9 makes unknown -Wno-* vanish.

Reimplement that from scratch in our ancient gcc, because it's really
useful for porting newer code and dealing with compiler variations.
(slightly tweaked to reset location to unknown location after the okays)

okay kettenis@ jasper@

found out https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28322
after the patch, which explains a similar reasoning better, and leads
to another patch for older GCC, possibly GPLv3.


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.7 10-Jul-2014 matthew

Backport support for -Wframe-larger-than=N to base GCC

This is the flag name that modern GCC and Clang have de facto
standardized on for the functionality that we locally named
-Wstack-larger-than-N.

ok brad, miod


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.6 28-Aug-2012 pascal

Add support for PIE-by-default in both ld and gcc. This is a completely
different approach than the one taken in kurt@'s original diff, but deemed
better after discussion and diff exchange with kettenis@ and matthew@.

Lots of feedback by kettenis@ and matthew@, prodding and encouragement by
deraadt@.

ok kettenis@ matthew@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.5 20-May-2010 drahn

turn off strict overflow for all optimizations on OpenBSD, also disable wrapv.
ok kettenis@ robert@, tested by marco@, kevlo@ myself


# 1.4 16-May-2010 jsg

Don't include -ftree-vrp in -O2 and higher as it has known bugs in gcc 4.2.
Fixes jdk builds among other things.

ok robert@ espie@


Revision tags: OPENBSD_4_7_BASE
# 1.3 24-Feb-2010 robert

merge more local changes:
- disable unsafe builtins
- create a stub for -Wbounded
- move strict aliasing to -O3


# 1.2 15-Oct-2009 robert

merge some gcc-local(1) changes:
- disable -fident by default
- disable -fstrict-aliasing with -O2
- add support for -Wstack-larger-than-N (only for i386 and amd64 for now)


# 1.1 15-Oct-2009 robert

branches: 1.1.1;
Initial revision