Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist updates to make it at least build in ...



details:   https://anonhg.NetBSD.org/src/rev/5d4db64653ef
branches:  trunk
changeset: 829473:5d4db64653ef
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Feb 02 20:45:19 2018 +0000

description:
updates to make it at least build in tools/gcc:

- fix -fdelete-null-pointer-checks default (needs more inspection)
- revert unnecessary local changes in gcc.h, system.h and freebsd-spec.h
- fix local changes to invoke.texi
- update man and info pages
- fix a typo in unwind-seh.c

diffstat:

 external/gpl3/gcc/dist/gcc/common.opt            |     6 +-
 external/gpl3/gcc/dist/gcc/config/freebsd-spec.h |     8 -
 external/gpl3/gcc/dist/gcc/doc/cpp.1             |    22 +-
 external/gpl3/gcc/dist/gcc/doc/cpp.info          |   Bin 
 external/gpl3/gcc/dist/gcc/doc/cppinternals.info |   Bin 
 external/gpl3/gcc/dist/gcc/doc/g++.1             |  7472 ++++++++++++---------
 external/gpl3/gcc/dist/gcc/doc/gcc.1             |  7472 ++++++++++++---------
 external/gpl3/gcc/dist/gcc/doc/gcc.info          |   Bin 
 external/gpl3/gcc/dist/gcc/doc/gccinstall.info   |   Bin 
 external/gpl3/gcc/dist/gcc/doc/gccint.info       |   Bin 
 external/gpl3/gcc/dist/gcc/doc/gcov-tool.1       |    22 +-
 external/gpl3/gcc/dist/gcc/doc/gcov.1            |   242 +-
 external/gpl3/gcc/dist/gcc/doc/invoke.texi       |    19 +-
 external/gpl3/gcc/dist/gcc/gcc.h                 |    26 -
 external/gpl3/gcc/dist/gcc/system.h              |     2 -
 external/gpl3/gcc/dist/libgcc/unwind-seh.c       |     2 +-
 16 files changed, 8640 insertions(+), 6653 deletions(-)

diffs (truncated from 19199 to 300 lines):

diff -r 2f6c93c00b9c -r 5d4db64653ef external/gpl3/gcc/dist/gcc/common.opt
--- a/external/gpl3/gcc/dist/gcc/common.opt     Fri Feb 02 10:49:01 2018 +0000
+++ b/external/gpl3/gcc/dist/gcc/common.opt     Fri Feb 02 20:45:19 2018 +0000
@@ -1119,11 +1119,11 @@
 Common Report Var(flag_delete_dead_exceptions) Init(0) Optimization
 Delete dead instructions that may throw exceptions.
 
-fdelete-null-pointer-checks
 ;; netbsd GCC 5 disabled this, GCC 6 has it default to -1 
 ;; figure out what -1 means
-Common Report Var(flag_delete_null_pointer_checks) Init(0) Optimization
-Delete useless null pointer checks
+fdelete-null-pointer-checks
+Common Report Var(flag_delete_null_pointer_checks) Init(-1) Optimization
+Delete useless null pointer checks.
 
 fdevirtualize-at-ltrans
 Common Report Var(flag_ltrans_devirtualize)
diff -r 2f6c93c00b9c -r 5d4db64653ef external/gpl3/gcc/dist/gcc/config/freebsd-spec.h
--- a/external/gpl3/gcc/dist/gcc/config/freebsd-spec.h  Fri Feb 02 10:49:01 2018 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/freebsd-spec.h  Fri Feb 02 20:45:19 2018 +0000
@@ -134,14 +134,6 @@
 #define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
 #endif
 
-#if defined(HAVE_LD_EH_FRAME_HDR) && !defined(LINK_EH_SPEC)
-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
-#endif
-
-/* Use --as-needed -lgcc_s for eh support.  */
-#ifdef HAVE_LD_AS_NEEDED
-#define USE_LD_AS_NEEDED 1
-#endif
 /* NOTE: The freebsd-spec.h header is included also for various
    non-FreeBSD powerpc targets, thus it should never define macros
    other than FBSD_* prefixed ones, or USING_CONFIG_FREEBSD_SPEC.  */
diff -r 2f6c93c00b9c -r 5d4db64653ef external/gpl3/gcc/dist/gcc/doc/cpp.1
--- a/external/gpl3/gcc/dist/gcc/doc/cpp.1      Fri Feb 02 10:49:01 2018 +0000
+++ b/external/gpl3/gcc/dist/gcc/doc/cpp.1      Fri Feb 02 20:45:19 2018 +0000
@@ -1,4 +1,4 @@
-.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
+.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32)
 .\"
 .\" Standard preamble:
 .\" ========================================================================
@@ -46,7 +46,7 @@
 .ie \n(.g .ds Aq \(aq
 .el       .ds Aq '
 .\"
-.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" If the F register is >0, we'll generate index entries on stderr for
 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
 .\" entries marked with X<> in POD.  Of course, you'll have to process the
 .\" output yourself in some meaningful fashion.
@@ -54,20 +54,16 @@
 .\" Avoid warning from groff about undefined register 'F'.
 .de IX
 ..
-.nr rF 0
-.if \n(.g .if rF .nr rF 1
-.if (\n(rF:(\n(.g==0)) \{
-.    if \nF \{
-.        de IX
-.        tm Index:\\$1\t\\n%\t"\\$2"
+.if !\nF .nr F 0
+.if \nF>0 \{\
+.    de IX
+.    tm Index:\\$1\t\\n%\t"\\$2"
 ..
-.        if !\nF==2 \{
-.            nr % 0
-.            nr F 2
-.        \}
+.    if !\nF==2 \{\
+.        nr % 0
+.        nr F 2
 .    \}
 .\}
-.rr rF
 .\"
 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
diff -r 2f6c93c00b9c -r 5d4db64653ef external/gpl3/gcc/dist/gcc/doc/cpp.info
Binary file external/gpl3/gcc/dist/gcc/doc/cpp.info has changed
diff -r 2f6c93c00b9c -r 5d4db64653ef external/gpl3/gcc/dist/gcc/doc/cppinternals.info
Binary file external/gpl3/gcc/dist/gcc/doc/cppinternals.info has changed
diff -r 2f6c93c00b9c -r 5d4db64653ef external/gpl3/gcc/dist/gcc/doc/g++.1
--- a/external/gpl3/gcc/dist/gcc/doc/g++.1      Fri Feb 02 10:49:01 2018 +0000
+++ b/external/gpl3/gcc/dist/gcc/doc/g++.1      Fri Feb 02 20:45:19 2018 +0000
@@ -1,4 +1,4 @@
-.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32)
 .\"
 .\" Standard preamble:
 .\" ========================================================================
@@ -46,7 +46,7 @@
 .ie \n(.g .ds Aq \(aq
 .el       .ds Aq '
 .\"
-.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" If the F register is >0, we'll generate index entries on stderr for
 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
 .\" entries marked with X<> in POD.  Of course, you'll have to process the
 .\" output yourself in some meaningful fashion.
@@ -54,20 +54,16 @@
 .\" Avoid warning from groff about undefined register 'F'.
 .de IX
 ..
-.nr rF 0
-.if \n(.g .if rF .nr rF 1
-.if (\n(rF:(\n(.g==0)) \{
-.    if \nF \{
-.        de IX
-.        tm Index:\\$1\t\\n%\t"\\$2"
+.if !\nF .nr F 0
+.if \nF>0 \{\
+.    de IX
+.    tm Index:\\$1\t\\n%\t"\\$2"
 ..
-.        if !\nF==2 \{
-.            nr % 0
-.            nr F 2
-.        \}
+.    if !\nF==2 \{\
+.        nr % 0
+.        nr F 2
 .    \}
 .\}
-.rr rF
 .\"
 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
@@ -133,7 +129,7 @@
 .\" ========================================================================
 .\"
 .IX Title "GCC 1"
-.TH GCC 1 "2016-06-03" "gcc-5.4.0" "GNU"
+.TH GCC 1 "2017-07-04" "gcc-6.4.0" "GNU"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
@@ -160,7 +156,7 @@
 says not to run the linker.  Then the output consists of object files
 output by the assembler.
 .PP
-Other options are passed on to one stage of processing.  Some options
+Other options are passed on to one or more stages of processing.  Some options
 control the preprocessor and others the compiler itself.  Yet other
 options control the assembler and linker; most of these are not
 documented here, since you rarely need to use any of them.
@@ -171,6 +167,12 @@
 for a particular option does not mention a source language, you can use
 that option with all supported languages.
 .PP
+The usual way to run \s-1GCC\s0 is to run the executable called \fBgcc\fR, or
+\&\fImachine\fR\fB\-gcc\fR when cross-compiling, or
+\&\fImachine\fR\fB\-gcc\-\fR\fIversion\fR to run a specific version of \s-1GCC.\s0
+When you compile \*(C+ programs, you should invoke \s-1GCC\s0 as \fBg++\fR 
+instead.
+.PP
 The \fBgcc\fR program accepts options and file names as operands.  Many
 options have multi-letter names; therefore multiple single-letter options
 may \fInot\fR be grouped: \fB\-dv\fR is very different from \fB\-d\ \-v\fR.
@@ -195,10 +197,10 @@
 in the following sections.
 .IP "\fIOverall Options\fR" 4
 .IX Item "Overall Options"
-\&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-no\-canonical\-prefixes  
-\&\-pipe  \-pass\-exit\-codes  
-\&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help\fR[\fB=\fR\fIclass\fR[\fB,...\fR]]  \fB\-\-target\-help  
-\&\-\-version \-wrapper @\fR\fIfile\fR \fB\-fplugin=\fR\fIfile\fR \fB\-fplugin\-arg\-\fR\fIname\fR\fB=\fR\fIarg\fR  
+\&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-x\fR \fIlanguage\fR  
+\&\fB\-v  \-###  \-\-help\fR[\fB=\fR\fIclass\fR[\fB,...\fR]]  \fB\-\-target\-help  \-\-version 
+\&\-pass\-exit\-codes  \-pipe  \-specs=\fR\fIfile\fR  \fB\-wrapper  
+@\fR\fIfile\fR \fB\-fplugin=\fR\fIfile\fR \fB\-fplugin\-arg\-\fR\fIname\fR\fB=\fR\fIarg\fR  
 \&\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] \fB\-fada\-spec\-parent=\fR\fIunit\fR \fB\-fdump\-go\-spec=\fR\fIfile\fR
 .IP "\fIC Language Options\fR" 4
 .IX Item "C Language Options"
@@ -206,10 +208,11 @@
 \&\-aux\-info\fR \fIfilename\fR \fB\-fallow\-parameterless\-variadic\-functions 
 \&\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
 \&\fB\-fhosted  \-ffreestanding \-fopenacc \-fopenmp \-fopenmp\-simd 
-\&\-fms\-extensions \-fplan9\-extensions \-trigraphs \-traditional \-traditional\-cpp 
-\&\-fallow\-single\-precision  \-fcond\-mismatch \-flax\-vector\-conversions 
+\&\-fms\-extensions \-fplan9\-extensions \-fsso\-struct=\fR\fIendianness\fR
+\&\fB\-fallow\-single\-precision  \-fcond\-mismatch \-flax\-vector\-conversions 
 \&\-fsigned\-bitfields  \-fsigned\-char 
-\&\-funsigned\-bitfields  \-funsigned\-char\fR
+\&\-funsigned\-bitfields  \-funsigned\-char 
+\&\-trigraphs \-traditional \-traditional\-cpp\fR
 .IP "\fI\*(C+ Language Options\fR" 4
 .IX Item " Language Options"
 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control  \-fcheck\-new 
@@ -224,22 +227,21 @@
 \&\-fno\-optional\-diags  \-fpermissive 
 \&\-fno\-pretty\-templates 
 \&\-frepo  \-fno\-rtti \-fsized\-deallocation 
-\&\-fstats  \-ftemplate\-backtrace\-limit=\fR\fIn\fR 
+\&\-ftemplate\-backtrace\-limit=\fR\fIn\fR 
 \&\fB\-ftemplate\-depth=\fR\fIn\fR 
 \&\fB\-fno\-threadsafe\-statics  \-fuse\-cxa\-atexit 
 \&\-fno\-weak  \-nostdinc++ 
 \&\-fvisibility\-inlines\-hidden 
-\&\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR] 
-\&\fB\-fvtv\-counts \-fvtv\-debug 
 \&\-fvisibility\-ms\-compat 
 \&\-fext\-numeric\-literals 
 \&\-Wabi=\fR\fIn\fR  \fB\-Wabi\-tag  \-Wconversion\-null  \-Wctor\-dtor\-privacy 
-\&\-Wdelete\-non\-virtual\-dtor \-Wliteral\-suffix \-Wnarrowing 
+\&\-Wdelete\-non\-virtual\-dtor \-Wliteral\-suffix \-Wmultiple\-inheritance 
+\&\-Wnamespaces \-Wnarrowing 
 \&\-Wnoexcept \-Wnon\-virtual\-dtor  \-Wreorder 
-\&\-Weffc++  \-Wstrict\-null\-sentinel 
+\&\-Weffc++  \-Wstrict\-null\-sentinel \-Wtemplates 
 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
-\&\-Wsign\-promo\fR
+\&\-Wsign\-promo \-Wvirtual\-inheritance\fR
 .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
 .IX Item "Objective-C and Objective- Language Options"
 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
@@ -261,8 +263,8 @@
 \&\-Wno\-protocol  \-Wselector 
 \&\-Wstrict\-selector\-match 
 \&\-Wundeclared\-selector\fR
-.IP "\fILanguage Independent Options\fR" 4
-.IX Item "Language Independent Options"
+.IP "\fIDiagnostic Message Formatting Options\fR" 4
+.IX Item "Diagnostic Message Formatting Options"
 \&\fB\-fmessage\-length=\fR\fIn\fR  
 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]  
 \&\fB\-fdiagnostics\-color=\fR[\fBauto\fR|\fBnever\fR|\fBalways\fR]  
@@ -272,55 +274,62 @@
 \&\fB\-fsyntax\-only  \-fmax\-errors=\fR\fIn\fR  \fB\-Wpedantic 
 \&\-pedantic\-errors 
 \&\-w  \-Wextra  \-Wall  \-Waddress  \-Waggregate\-return  
-\&\-Waggressive\-loop\-optimizations \-Warray\-bounds \-Warray\-bounds=\fR\fIn\fR 
-\&\fB\-Wbool\-compare 
-\&\-Wno\-attributes \-Wno\-builtin\-macro\-redefined 
+\&\-Wno\-aggressive\-loop\-optimizations \-Warray\-bounds \-Warray\-bounds=\fR\fIn\fR 
+\&\fB\-Wno\-attributes \-Wbool\-compare \-Wno\-builtin\-macro\-redefined 
 \&\-Wc90\-c99\-compat \-Wc99\-c11\-compat 
 \&\-Wc++\-compat \-Wc++11\-compat \-Wc++14\-compat \-Wcast\-align  \-Wcast\-qual  
-\&\-Wchar\-subscripts \-Wclobbered  \-Wcomment \-Wconditionally\-supported  
-\&\-Wconversion \-Wcoverage\-mismatch \-Wdate\-time \-Wdelete\-incomplete \-Wno\-cpp  
+\&\-Wchar\-subscripts \-Wchkp \-Wclobbered  \-Wcomment \-Wconditionally\-supported  
+\&\-Wconversion \-Wcoverage\-mismatch \-Wno\-cpp \-Wdate\-time \-Wdelete\-incomplete 
 \&\-Wno\-deprecated \-Wno\-deprecated\-declarations \-Wno\-designated\-init 
 \&\-Wdisabled\-optimization 
 \&\-Wno\-discarded\-qualifiers \-Wno\-discarded\-array\-qualifiers 
-\&\-Wno\-div\-by\-zero \-Wdouble\-promotion \-Wempty\-body  \-Wenum\-compare 
-\&\-Wno\-endif\-labels \-Werror  \-Werror=* 
-\&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
+\&\-Wno\-div\-by\-zero \-Wdouble\-promotion \-Wduplicated\-cond 
+\&\-Wempty\-body  \-Wenum\-compare \-Wno\-endif\-labels 
+\&\-Werror  \-Werror=* \-Wfatal\-errors \-Wfloat\-equal  \-Wformat  \-Wformat=2 
 \&\-Wno\-format\-contains\-nul \-Wno\-format\-extra\-args \-Wformat\-nonliteral 
-\&\-Wformat\-security  \-Wformat\-signedness  \-Wformat\-y2k 
+\&\-Wformat\-security  \-Wformat\-signedness  \-Wformat\-y2k \-Wframe\-address 
 \&\-Wframe\-larger\-than=\fR\fIlen\fR \fB\-Wno\-free\-nonheap\-object \-Wjump\-misses\-init 
-\&\-Wignored\-qualifiers  \-Wincompatible\-pointer\-types 
+\&\-Wignored\-qualifiers  \-Wignored\-attributes  \-Wincompatible\-pointer\-types 
 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
 \&\-Winit\-self  \-Winline  \-Wno\-int\-conversion 
-\&\-Wno\-int\-to\-pointer\-cast \-Wno\-invalid\-offsetof 
-\&\-Winvalid\-pch \-Wlarger\-than=\fR\fIlen\fR  \fB\-Wunsafe\-loop\-optimizations 
-\&\-Wlogical\-op \-Wlogical\-not\-parentheses \-Wlong\-long 
-\&\-Wmain \-Wmaybe\-uninitialized \-Wmemset\-transposed\-args \-Wmissing\-braces 
+\&\-Wno\-int\-to\-pointer\-cast \-Winvalid\-memory\-model \-Wno\-invalid\-offsetof 
+\&\-Winvalid\-pch \-Wlarger\-than=\fR\fIlen\fR 
+\&\fB\-Wlogical\-op \-Wlogical\-not\-parentheses \-Wlong\-long 
+\&\-Wmain \-Wmaybe\-uninitialized \-Wmemset\-transposed\-args 
+\&\-Wmisleading\-indentation \-Wmissing\-braces 
 \&\-Wmissing\-field\-initializers \-Wmissing\-include\-dirs 
-\&\-Wno\-multichar  \-Wnonnull  \-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR] 
- \fB\-Wodr  \-Wno\-overflow  \-Wopenmp\-simd 
-\&\-Woverlength\-strings  \-Wpacked  \-Wpacked\-bitfield\-compat  \-Wpadded 
-\&\-Wparentheses  \-Wpedantic\-ms\-format \-Wno\-pedantic\-ms\-format 
-\&\-Wpointer\-arith  \-Wno\-pointer\-to\-int\-cast 
-\&\-Wredundant\-decls  \-Wno\-return\-local\-addr 
+\&\-Wno\-multichar \-Wnonnull \-Wnonnull\-compare 
+\&\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR] 
+\&\fB\-Wnull\-dereference \-Wodr  \-Wno\-overflow  \-Wopenmp\-simd  
+\&\-Woverride\-init\-side\-effects \-Woverlength\-strings 
+\&\-Wpacked  \-Wpacked\-bitfield\-compat  \-Wpadded 
+\&\-Wparentheses \-Wno\-pedantic\-ms\-format 
+\&\-Wplacement\-new \-Wplacement\-new=\fR\fIn\fR 
+\&\fB\-Wpointer\-arith  \-Wno\-pointer\-to\-int\-cast 
+\&\-Wno\-pragmas \-Wredundant\-decls  \-Wno\-return\-local\-addr 
 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow  \-Wno\-shadow\-ivar 
-\&\-Wshift\-count\-negative \-Wshift\-count\-overflow 
+\&\-Wshift\-overflow \-Wshift\-overflow=\fR\fIn\fR 
+\&\fB\-Wshift\-count\-negative \-Wshift\-count\-overflow \-Wshift\-negative\-value 
 \&\-Wsign\-compare  \-Wsign\-conversion \-Wfloat\-conversion 
+\&\-Wno\-scalar\-storage\-order 
 \&\-Wsizeof\-pointer\-memaccess  \-Wsizeof\-array\-argument 
 \&\-Wstack\-protector \-Wstack\-usage=\fR\fIlen\fR \fB\-Wstrict\-aliasing 
-\&\-Wstrict\-aliasing=n  \-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR 
+\&\-Wstrict\-aliasing=n \-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR 
 \&\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR] 



Home | Main Index | Thread Index | Old Index