OpenBSD CVS

CVS log for src/share/man/man1/gcc-local.1


[BACK] Up to [local] / src / share / man / man1

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.57 / (download) - annotate - [select for diffs], Sun Oct 29 23:31:16 2023 UTC (7 months, 1 week ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.56: +13 -2 lines
Diff to previous 1.56 (colored)

Make gnu99 the default for gcc 3.3.6 and 4.2.1, not gnu89.
While these versions of gcc don't have full C99 support, it is
better than defaulting to C89 when building modern software.
OK deraadt@

Revision 1.56 / (download) - annotate - [select for diffs], Sat Oct 28 00:25:19 2023 UTC (7 months, 1 week ago) by millert
Branch: MAIN
Changes since 1.55: +2 -13 lines
Diff to previous 1.55 (colored)

Back out change to make the default -std=gnu99 for now.

There has been some unexpected fallout.  Requested by deraadt@.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Oct 26 17:33:35 2023 UTC (7 months, 1 week ago) by millert
Branch: MAIN
Changes since 1.54: +13 -2 lines
Diff to previous 1.54 (colored)

Make gnu99 the default for gcc 3.3.6 and 4.2.1, not gnu89.
While these versions of gcc don't have full C99 support, it is
better than defaulting to C89 when building modern software.
OK deraadt@

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jun 10 16:00:27 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.53: +28 -39 lines
Diff to previous 1.53 (colored)

improve semantic markup for __attribute__

Revision 1.53 / (download) - annotate - [select for diffs], Thu Apr 27 06:22:11 2017 UTC (7 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

spelling;

Revision 1.52 / (download) - annotate - [select for diffs], Thu Apr 27 00:02:03 2017 UTC (7 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.51: +10 -2 lines
Diff to previous 1.51 (colored)

add support for -msave-args in gcc on amd64

i got sick of not having arguments in ddb stack traces on amd64,
which is because amd64 passes arguments in registers, and it's
impossible to figure out where they go without dwarf info, and when
you have dwarf info it is complicated.

solaris has a simple solution for this. they tweaked their compilers
to accept an -msave-args option which makes functions store their
arguments on the stack, while maintaining compatability with the
System V AMD64 ABI. tools (eg, ddb) can then look at the stack to
get access to function arguments in traces.

this ports their changes to gcc 3 to our gcc.

ok deraadt@

Revision 1.51 / (download) - annotate - [select for diffs], Tue Feb 14 12:50:15 2017 UTC (7 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

tweak previous; ok jsg, who reminded me the same text in
gcc-local needed bumped too;

Revision 1.50 / (download) - annotate - [select for diffs], Mon Feb 6 02:42:53 2017 UTC (7 years, 4 months ago) by guenther
Branch: MAIN
Changes since 1.49: +12 -3 lines
Diff to previous 1.49 (colored)

Document the behavior of -Wshadow.  Add arm to the list of PIE archs

Revision 1.49 / (download) - annotate - [select for diffs], Sun Oct 16 21:25:16 2016 UTC (7 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.48: +2 -4 lines
Diff to previous 1.48 (colored)

Delete URL to dead site.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Mar 14 03:01:48 2016 UTC (8 years, 2 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.47: +2 -4 lines
Diff to previous 1.47 (colored)

Remove a reference to lint(1) in the description of the -CC option. The
option itself may go away sometime soon.

ok guenther@, deraadt@

Revision 1.47 / (download) - annotate - [select for diffs], Wed Dec 23 08:42:42 2015 UTC (8 years, 5 months ago) by bentley
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.46: +2 -3 lines
Diff to previous 1.46 (colored)

We support PIE on static executables now.

ok pascal@

Revision 1.46 / (download) - annotate - [select for diffs], Thu Nov 5 09:48:05 2015 UTC (8 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

"commandline" -> "command line", since there are so few examples
of the former in the pages, so many of the latter, and in some of
these pages we had multiple spellings;

prompted by tj

Revision 1.45 / (download) - annotate - [select for diffs], Sat Oct 18 14:08:48 2014 UTC (9 years, 7 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.44: +7 -4 lines
Diff to previous 1.44 (colored)

Mention -fstack-shuffle is a gcc4-only thing, but gets silently ignored by
gcc3. Reminded by zhuk@

Revision 1.44 / (download) - annotate - [select for diffs], Sun Sep 28 10:43:33 2014 UTC (9 years, 8 months ago) by benno
Branch: MAIN
Changes since 1.43: +7 -2 lines
Diff to previous 1.43 (colored)

document -fstack-shuffle
ok jmc@ tedu@

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jul 10 19:14:40 2014 UTC (9 years, 10 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.42: +6 -2 lines
Diff to previous 1.42 (colored)

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 1.42 / (download) - annotate - [select for diffs], Sun Mar 23 17:29:06 2014 UTC (10 years, 2 months ago) by pascal
Branch: MAIN
Changes since 1.41: +3 -2 lines
Diff to previous 1.41 (colored)

Finally give powerpc PIE.  Remaining bugs on socppc fixed by kettenis@.

"I think you should do this switch right away" deraadt@

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 21 07:47:59 2014 UTC (10 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.40: +15 -14 lines
Diff to previous 1.40 (colored)

various small fixes to improve readability, mostly in the propolice section;

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jan 21 02:44:14 2014 UTC (10 years, 4 months ago) by martynas
Branch: MAIN
Changes since 1.39: +25 -4 lines
Diff to previous 1.39 (colored)

Update gcc-local(1) with recent changes to the toolchain:
- i386 is now PIE
- -Wbounded is enabled by default
- -Wbounded recognizes new attribute __wcstring__
- -fstack-protector-strong is supported

Revision 1.39 / (download) - annotate - [select for diffs], Wed Aug 7 01:10:27 2013 UTC (10 years, 10 months ago) by jsg
Branch: MAIN
Changes since 1.38: +9 -2 lines
Diff to previous 1.38 (colored)

mention support for binary integer constants

Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 6 19:05:57 2013 UTC (10 years, 10 months ago) by miod
Branch: MAIN
Changes since 1.37: +3 -23 lines
Diff to previous 1.37 (colored)

Switch vax to gcc 3.3.6.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jul 12 10:44:14 2013 UTC (10 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.36: +2 -13 lines
Diff to previous 1.36 (colored)

no more a.out for vax; From: Alexey Suslikov
ok miod

Revision 1.36 / (download) - annotate - [select for diffs], Fri Feb 8 07:37:43 2013 UTC (11 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

tweak previous;

Revision 1.35 / (download) - annotate - [select for diffs], Thu Feb 7 22:33:58 2013 UTC (11 years, 4 months ago) by miod
Branch: MAIN
Changes since 1.34: +13 -9 lines
Diff to previous 1.34 (colored)

Sync with reality. Partially revert 1.28 since gcc 3 is back in town. Also
mention collect2 ctor wrapper only exists on vax, and sjlj exceptions only
remain on vax on m88k as of today.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jan 6 21:53:49 2013 UTC (11 years, 5 months ago) by martynas
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Update information about PIE status in gcc-local(1).  OK pascal@.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Sep 25 19:51:36 2012 UTC (11 years, 8 months ago) by brad
Branch: MAIN
Changes since 1.32: +2 -7 lines
Diff to previous 1.32 (colored)

Remove mentioning of the -pthread flag.

Discussed with matthew@ guenther@ kettenis@
ok matthew@ sthen@

Revision 1.32 / (download) - annotate - [select for diffs], Fri Aug 31 19:01:31 2012 UTC (11 years, 9 months ago) by pascal
Branch: MAIN
Changes since 1.31: +15 -2 lines
Diff to previous 1.31 (colored)

Document PIE-by-default behaviour.  With a tweak from matthew@.

ok deraadt@ jmc@ matthew@

Revision 1.31 / (download) - annotate - [select for diffs], Sun Aug 12 17:01:35 2012 UTC (11 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Use .Lk for HTTP hyperlinks, not .Pa.
Most of the patch from Arto Jonsson <ajonsson at kapsi dot fi>.
jmc@ agrees in principle that .Lk is the right macro to use.

While here, update a few broken links,
and add missing markup at a few places.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 24 08:28:37 2012 UTC (11 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.29: +5 -4 lines
Diff to previous 1.29 (colored)

tweak previous (sorry matthieu, i should have spotted this earlier);

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jun 23 23:14:15 2012 UTC (11 years, 11 months ago) by matthieu
Branch: MAIN
Changes since 1.28: +8 -2 lines
Diff to previous 1.28 (colored)

Document that -Wsystem-headers is on by default.
ok pascal@, jmc@.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Apr 21 14:21:58 2012 UTC (12 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.27: +6 -8 lines
Diff to previous 1.27 (colored)

Don't mention gcc 3 anymore.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Apr 8 17:36:21 2012 UTC (12 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

no more lint;

Revision 1.26 / (download) - annotate - [select for diffs], Tue Nov 22 09:29:49 2011 UTC (12 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.25: +8 -24 lines
Diff to previous 1.25 (colored)

no need to plaster "on openbsd" all over the place - we're pretty clear
upfront that this page documents openbsd-specific changes;

from Daniel Dickman

Revision 1.25 / (download) - annotate - [select for diffs], Wed Sep 21 21:26:04 2011 UTC (12 years, 8 months ago) by jsg
Branch: MAIN
Changes since 1.24: +9 -2 lines
Diff to previous 1.24 (colored)

add a note about -ftree-vrp being removed from -O2
as it is known to be broken in 4.2.1

prompted by a discussion about other gcc bugs...

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 25 19:24:03 2011 UTC (12 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.23: +11 -2 lines
Diff to previous 1.23 (colored)

note that -fstrict-overflow is disabled by default.  ok jsg nicm

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jun 2 21:39:10 2011 UTC (13 years ago) by martynas
Branch: MAIN
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

Document that the rounding mode is dynamic, on Alpha.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 12 16:28:29 2010 UTC (13 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.21: +9 -12 lines
Diff to previous 1.21 (colored)

document gcc4; requested by brad

Revision 1.21 / (download) - annotate - [select for diffs], Sun May 9 14:07:58 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

tweak previous;

Revision 1.20 / (download) - annotate - [select for diffs], Sat May 8 17:45:45 2010 UTC (14 years, 1 month ago) by robert
Branch: MAIN
Changes since 1.19: +13 -2 lines
Diff to previous 1.19 (colored)

Document Wpointer-sign is not enabled in gcc 4.2.1 on OpenBSD
if -pedantic is not defined.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Nov 4 23:59:37 2008 UTC (15 years, 7 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.18: +6 -3 lines
Diff to previous 1.18 (colored)

man page states that alpha is fully ieee compliant, but it does not
maintain inexact flag.  some platforms implement -mieee-with-inexact;
however it's not practical since it slows down the code, with very
small benefit.  note the fact in the man page that inexact flag is
not maintained.  w/ a tweak from jmc@.  ok jmc@, millert@, merdely@

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 10 13:12:43 2008 UTC (16 years ago) by merdely
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.17: +7 -2 lines
Diff to previous 1.17 (colored)

Document that our gcc on alpha has -mieee enabled by default.

Suggested by and ok jmc.  ok miod.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Nov 27 15:18:00 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

tweak the Ox warning section;

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 26 22:47:22 2007 UTC (16 years, 6 months ago) by miod
Branch: MAIN
Changes since 1.15: +14 -4 lines
Diff to previous 1.15 (colored)

Add a new warning to gcc, -Wvariable-decl, which causes it to warn for
auto declarations which size are not known at compile time.

This flag will eventually be added to the kernel makefiles so that we
can rely on -Wstack-larger-than work.

ok deraadt@ mbalmer@ otto@ marco@

Revision 1.15 / (download) - annotate - [select for diffs], Thu May 31 19:19:48 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

convert to new .Dd format;

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 21 13:45:39 2006 UTC (17 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

tweak;

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jul 20 21:05:22 2006 UTC (17 years, 10 months ago) by miod
Branch: MAIN
Changes since 1.12: +11 -2 lines
Diff to previous 1.12 (colored)

Introduce a new compiler warning, -Wstack-larger-than-N, to report
functions which are too greedy in stack variables.

This is intended to be used for kernel compiles, where this warning will
be enabled for a reasonable size (after a few weeks grace period so that
people can upgrade their compiler).

Please note that this warning relies upon md code, and as such is only
available on platforms OpenBSD runs on; also, the stack size being warned
on is only the local variables size, regardless of the ABI stack usage
requirements and the callee-saved registers; which means a function may
be warning-clean yet need more stack space than meets the eye; the
actual size being checked on may change to include these extras in the
future.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Apr 11 10:36:23 2006 UTC (18 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.11: +16 -1 lines
Diff to previous 1.11 (colored)

minimal documentation for -fstack-protector-all and gcc -E -CC in 2.95.3.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 27 14:12:27 2005 UTC (19 years, 1 month ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.10: +2 -3 lines
Diff to previous 1.10 (colored)

All gcc versions disable trampolines by default now.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 6 10:39:31 2005 UTC (19 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.9: +12 -1 lines
Diff to previous 1.9 (colored)

disallow trampolines by default. okay miod@, jmc@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jan 18 03:37:46 2005 UTC (19 years, 4 months ago) by david
Branch: MAIN
Changes since 1.8: +1 -6 lines
Diff to previous 1.8 (colored)

sentinel is now implemented in gcc 3.3.5; ok miod@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 11 09:16:33 2005 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

tweaks;

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jan 11 02:45:37 2005 UTC (19 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.6: +14 -2 lines
Diff to previous 1.6 (colored)

be more specific about pp log attempts.
explain about cast used as lvalues.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 3 16:03:29 2005 UTC (19 years, 5 months ago) by miod
Branch: MAIN
Changes since 1.5: +14 -7 lines
Diff to previous 1.5 (colored)

Remove gcc 2.95/x86 specific notes, and mention the implicit
-fno-zero-initialized-in-bss for gcc 3.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 31 06:00:15 2004 UTC (19 years, 5 months ago) by david
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

gcc 3.3.5; ok espie@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 2 07:38:40 2004 UTC (19 years, 9 months ago) by brad
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

propolice -> ProPolice

Revision 1.3 / (download) - annotate - [select for diffs], Thu Aug 26 14:08:19 2004 UTC (19 years, 9 months ago) by miod
Branch: MAIN
Changes since 1.2: +14 -9 lines
Diff to previous 1.2 (colored)

- update propolice URL
- write attribute names with their underscores (as was already the case for
  __bounded__) for consistency.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Apr 23 22:25:04 2004 UTC (20 years, 1 month ago) by avsm
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

remove note about bounded attribute not being implemented in gcc3

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 31 22:14:49 2004 UTC (20 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5

uniform documentation for gcc2 and gcc3.
nits by jmc@, okay deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.