DragonFlyBSD/src 7d36bc5sys/bus/mmc mmc_subr.c

mmc - Fix missing variable initialization in mmc_switch_status

Found via gcc14 -fanalyzer.

Also part of FreeBSD commit aca38eab8a12.
DeltaFile
+1-0sys/bus/mmc/mmc_subr.c
+1-01 files

DragonFlyBSD/src ab75162gnu/lib/gcc47 Makefile.inc, gnu/lib/gcc47/libsupc++ Makefile

gcc47/libsupc++: Fix config.h for cp-demangle.c

Similar to the previous fix to gcc80/libstdcxx/libconv_supc, apply the
same config.h fix to gcc47/libsupc++.
DeltaFile
+9-3gnu/lib/gcc47/libsupc++/Makefile
+2-0gnu/lib/gcc47/Makefile.inc
+11-32 files

DragonFlyBSD/src 60e05d4gnu/lib/gcc80/libstdcxx Makefile.inc, gnu/lib/gcc80/libstdcxx/components/libconv_1998 Makefile

gcc80/libstdcxx: Fix config.h for libconv_supc/cp-demangle.c

cp-demangle.c is provided by libiberty, so it must be built with
libiberty's 'config.h'.  Introduce the 'GCC_NO_INC' make variable to
avoid including any search paths so we can specify the correct search
path for cp-demangle.c.  Meanwhile, add the rule to copy over the
libiberty config.h.

In addition, apply GCC_NO_INC=yes to other libstdcxx components as it
turned out these search paths are unneeded.
DeltaFile
+8-4gnu/lib/gcc80/libstdcxx/components/libconv_supc/Makefile
+1-1gnu/lib/gcc80/libstdcxx/components/libconv_1998/Makefile
+1-1gnu/lib/gcc80/libstdcxx/components/libconv_2011/Makefile
+1-1gnu/lib/gcc80/libstdcxx/headers/Makefile
+1-1gnu/lib/gcc80/libstdcxx/product/Makefile
+2-0gnu/lib/gcc80/libstdcxx/Makefile.inc
+14-81 files not shown
+16-87 files

DragonFlyBSD/src 9861df6sys/conf kmod.mk

sys/kmod.mk: Remove the obsolete CFLAGS handling for FREEBSD_COMPAT
DeltaFile
+0-4sys/conf/kmod.mk
+0-41 files

DragonFlyBSD/src e51ddf9sys/platform/pc64/conf kern.mk

pc64: Add '-mno-fp-ret-in-387' compiler option

This option prevents returning floating-point values in x87 registers.

I don't think our kernel has such issues, but just be safe.
DeltaFile
+1-0sys/platform/pc64/conf/kern.mk
+1-01 files

DragonFlyBSD/src e8f153csys/platform/pc64/conf kern.mk

pc64: Remove the obsolete '-mno-sse5' option

There was no SSE5; AMD abandoned that and GCC also dropped this option.
DeltaFile
+1-2sys/platform/pc64/conf/kern.mk
+1-21 files

DragonFlyBSD/src 6bf6d10gnu/usr.bin/cc47/cc_prep/config dragonfly-native.h, gnu/usr.bin/cc80/cc_prep/config dragonfly-native.h

gcc47,gcc80: Define LINK_SSP_SPEC to link with libssp_nonshared.a

libssp_nonshared.a provides '__stack_chk_fail_local()' as a hidden
symbol to avoids PLT overhead on 32-bit x86 by deferring PIC register
setup to the cold failure path.  Although our libc.a (static) also
provides the '__stack_chk_fail_local()', it cannot be used when the
program is dynamically linked.

Note that on x86-64, GCC calls '__stack_chk_fail()' directly because
RIP-relative addressing makes PLT efficient, but we link
libssp_nonshared.a for consistency with other systems as well as for
future-proof.

One more thing, the 'TARGET_LIBC_PROVIDES_SSP' macro is undefined in GCC
4.7's 'auto-host.h' but defined to be 1 in GCC 8.0's.  However, this
difference is ignored when 'LINK_SSP_SPEC' is explicitly defined.
DeltaFile
+16-0gnu/usr.bin/cc47/cc_prep/config/dragonfly-native.h
+16-0gnu/usr.bin/cc80/cc_prep/config/dragonfly-native.h
+32-02 files

DragonFlyBSD/src 71f5450gnu/usr.bin/cc47/cc_prep/config dragonfly-native.h

cc47: Whitespace cleanups to cc_prep/config/dragonfly-native.h

Reduce diffs with cc80's dragonfly-native.h.
DeltaFile
+7-7gnu/usr.bin/cc47/cc_prep/config/dragonfly-native.h
+7-71 files

DragonFlyBSD/src 2465962gnu/lib/csu Makefile.csu

gnu/lib/csu: Remove unused MFILE=${.ALLSRC} from 'tm.h' target

All the ${MFILE} variables used in gnu/usr.bin/cc* refer to man pages,
so this MFILE=${.ALLSRC} is never used.
DeltaFile
+1-1gnu/lib/csu/Makefile.csu
+1-11 files

DragonFlyBSD/src b7b9426gnu/lib/gcc47 Makefile.inc, gnu/usr.bin/cc47 Makefile.tgt

gcc47: Minor cleanups to makefiles

- Remove unused LIBSUPCPP and GTFILES_SRCDIR.
- Include <bsd.subdir.mk> instead of <bsd.obj.mk> for cc_tools/Makefile
  to make more sense.
DeltaFile
+0-2gnu/lib/gcc47/Makefile.inc
+0-2gnu/usr.bin/cc47/Makefile.tgt
+1-1gnu/usr.bin/cc47/cc_tools/Makefile
+1-53 files

DragonFlyBSD/src 561b7bdgnu/lib/gcc80/libstdcxx/components/libconv_1998 Makefile

gcc80/libstdcxx: Add the missing 'parallel' to FLAGS_GROUPS
DeltaFile
+1-1gnu/lib/gcc80/libstdcxx/components/libconv_1998/Makefile
+1-11 files

DragonFlyBSD/src e4e8699gnu/usr.bin/cc80/drivers/gcov Makefile

cc80: Correct include paths for Makefile.langs and Makefile.cco

The reason that this mistake didn't cause any error is because the
first included Makefile.inc set a bunch of .PATH and make used one of
them to locate the "../Makefile.langs" and "../../Makefile.cco".
DeltaFile
+2-2gnu/usr.bin/cc80/drivers/gcov/Makefile
+2-21 files

DragonFlyBSD/src 810b2a1gnu/lib/gcc80/csu Makefile, gnu/usr.bin/cc80 Makefile.langs Makefile.tgt

gcc80: Various cleanups and tweaks to makefiles

- Remove unused variables.
- Remove some commented directives.
- Remove unneeded '-I${.CURDIR}' from cc_tools/libcpp/Makefile.
- Fix multiple comments: typos, filenames, punctuations, etc.
- Change two unnecessary '+=' to be '='.
- Include <bsd.subdir.mk> for 'cc_tools/Makefile' to make more sense.
- Add a brief description for the origin of 'Makefile.zhack'.
DeltaFile
+6-7gnu/usr.bin/cc80/backends/programs/collect2/Makefile
+8-4gnu/usr.bin/cc80/cc_tools/libiberty/Makefile
+3-5gnu/usr.bin/cc80/cc_tools/tools/Makefile
+3-3gnu/lib/gcc80/csu/Makefile
+1-5gnu/usr.bin/cc80/Makefile.langs
+0-5gnu/usr.bin/cc80/Makefile.tgt
+21-299 files not shown
+30-4415 files

DragonFlyBSD/src 2329559gnu/usr.bin/cc80/drivers/cc gcc.1 Makefile, gnu/usr.bin/cc80/drivers/cpp cpp.1 Makefile

cc80: Install man pages from contrib/gcc-8.0 source directory
DeltaFile
+0-27,545gnu/usr.bin/cc80/drivers/cc/gcc.1
+0-945gnu/usr.bin/cc80/drivers/cpp/cpp.1
+0-945gnu/usr.bin/cc80/drivers/gcov/gcov.1
+1-4gnu/usr.bin/cc80/drivers/gcov/Makefile
+1-4gnu/usr.bin/cc80/drivers/cpp/Makefile
+1-1gnu/usr.bin/cc80/drivers/cc/Makefile
+3-29,4446 files

DragonFlyBSD/src e06a0eecontrib/gcc-8.0 README.DRAGONFLY

contrib/gcc-8.0: Add codecvt_members.cc to patched list

From commit bd23261bc0d14eee4147ed68391498b1c45ec286.
DeltaFile
+1-0contrib/gcc-8.0/README.DRAGONFLY
+1-01 files

DragonFlyBSD/src 1320947contrib/gcc-8.0 README.DRAGONFLY, contrib/gcc-8.0/gcc/doc gcc.1

contrib/gcc-8.0: Document -save-temps=objects addition

Taken from commit d0443a708c8341657661365b9fc552d8ec56bf97.
DeltaFile
+22-1contrib/gcc-8.0/gcc/doc/gcc.1
+1-0contrib/gcc-8.0/README.DRAGONFLY
+23-12 files

DragonFlyBSD/src 508ceb9contrib/gcc-8.0 README.DELETED

contrib/gcc-8.0: Update README.DELETED
DeltaFile
+71-1contrib/gcc-8.0/README.DELETED
+71-11 files

DragonFlyBSD/src c741cdacontrib/gcc-8.0/gcc/doc gcc.1 cpp.1

Merge branch 'vendor/GCC80'
DeltaFile
+27,524-0contrib/gcc-8.0/gcc/doc/gcc.1
+945-0contrib/gcc-8.0/gcc/doc/cpp.1
+945-0contrib/gcc-8.0/gcc/doc/gcov.1
+29,414-03 files

DragonFlyBSD/src e1e28e9contrib/gcc-8.0/gcc/doc gcc.1 cpp.1

vendor/GCC80: Add man pages from release tarball

Extracted from release tarball: gcc-8.3.0.tar.xz
DeltaFile
+27,524-0contrib/gcc-8.0/gcc/doc/gcc.1
+945-0contrib/gcc-8.0/gcc/doc/cpp.1
+945-0contrib/gcc-8.0/gcc/doc/gcov.1
+29,414-03 files

DragonFlyBSD/src 61a7c08usr.bin/xz Makefile

xz(1): Remove the unneeded '${LZMADIR}/api/lzma' search path

This search path is unneeded, as the API headers there must be included
via the public header '${LZMADIR}/api/lzma.h'.

In addition, it would cause conflict with other headers in
liblzma/{check,common} etc. directories.  This happened when I tried
to adjust the per-group flags to override the default flags (e.g.,
CFLAGS).  An example error log is:

```
In file included from /usr/src/usr.bin/xz/../../contrib/xz/src/liblzma/common/block_buffer_encoder.c:17:
/usr/src/usr.bin/xz/../../contrib/xz/src/liblzma/api/lzma/check.h:16:3: error: #error Never include this file directly. Use <lzma.h> instead.
 # error Never include this file directly. Use <lzma.h> instead.
   ^~~~~
```
DeltaFile
+1-1usr.bin/xz/Makefile
+1-11 files

DragonFlyBSD/src c3195b5share/man/man4 lagg.4

lagg.4: Clean up the description of interface creation/cloning
DeltaFile
+5-14share/man/man4/lagg.4
+5-141 files

DragonFlyBSD/src 08f6d2ausr.bin/tail forward.c reverse.c

tail(1): Almost sync with FreeBSD

The most important change is that the '-F' flag now supports files that
are not yet exist; it will persist in trying to open the files instead
of giving up.  This behavior is the same as GNU tail.

Another major fix is that "tail -f" now works on non-local filesystems.

Things excluded from the sync:
- long options
- style changes
- capability/capsicum support
- expand_number(3) support (our libutil(3) doesn't have it)

In addition, improve the BOOTSTRAPPING handling a bit.  The program
simply exits when -f/-F is specified.
DeltaFile
+158-119usr.bin/tail/forward.c
+96-95usr.bin/tail/reverse.c
+70-55usr.bin/tail/tail.c
+34-30usr.bin/tail/read.c
+26-22usr.bin/tail/tail.1
+19-16usr.bin/tail/extern.h
+403-3371 files not shown
+426-3467 files

DragonFlyBSD/src 7817903share/man/man4 Makefile

carp.4: Install an if_carp.4 link
DeltaFile
+1-0share/man/man4/Makefile
+1-01 files

DragonFlyBSD/src 388588cusr.bin/tail reverse.c

tail(1): Fix '-r' (reverse) to work on pseudo filesystems

Pseudo filesystems (e.g., procfs) advertize a zero file size.  Fix
reverse() to handle such a case so that '-r' works on pseudo
filesystems.
DeltaFile
+1-1usr.bin/tail/reverse.c
+1-11 files

DragonFlyBSD/src 5c50cc4share/man/man4 lagg.4

lagg.4: Improve the wired-wireless failover example

Adjust the failover example to change the MAC address of the *wired*
device instead of the *wireless* device, because some common wireless
devices do not support to change the MAC address.

Obtained-from: FreeBSD
DeltaFile
+7-5share/man/man4/lagg.4
+7-51 files

DragonFlyBSD/src 2383042nrelease Makefile

nrelease - Preliminary Makefile adjustment to use dsynth (3)

* Add dummy "curses" target to avoid make complaint
DeltaFile
+1-1nrelease/Makefile
+1-11 files

DragonFlyBSD/src 734c0fbnrelease Makefile

nrelease - Preliminary Makefile adjustment to use dsynth (2)

* Add "binpkgs" option back in

* Add www/chromium to the gui build

* Use the -t option to du (calculate apparent size) so it does not
  undercount the size of the root on a compressed H2 volume in order
  to size a USB stick that is currently formatting UFS.

  (we really need to adjust that whole mess to a dual-partition scheme
  and use hammer2, but for now its still all in one UFS partition).

* Improve console output
DeltaFile
+112-11nrelease/Makefile
+112-111 files

DragonFlyBSD/src 9a2c191usr.bin/dsynth dsynth.c build.c

dsynth - Don't auto-upgrade on basic directives, exit code on FAILUREs

* Don't auto-upgrade with the "build" and "force" directives.  The
  "install" and "upgrade-system" directives will will issue the
  upgrade.

* Exit with code 1 if any builds fail with "FAILURE".  Skipped packages
  alone do not cause an exit code of 1.
DeltaFile
+4-3usr.bin/dsynth/dsynth.c
+1-0usr.bin/dsynth/build.c
+1-0usr.bin/dsynth/dsynth.h
+6-33 files

DragonFlyBSD/src f2e741enrelease Makefile

nrelease - Preliminary Makefile adjustment to use dsynth

* Use dsynth to build packages.  Note that we still have to bootstrap
  "pkg" (chicken-and-egg issue).

* dsynth environment is placed in /usr/obj/release/build and is null-mounted
  into the chroot.

* dsynth is run from the chroot to build and install packages.

* Output from buildworld/buildkernel/installworld/installkernel now written
  to log files in /usr/obj/release instead of spewing to the console
  to reduce clutter.
DeltaFile
+75-66nrelease/Makefile
+75-661 files

DragonFlyBSD/src 4ea7a86usr.bin/dsynth repo.c

dsynth - Implement "install" directive

* Implement the install directive by fleshing out DoUpgradePkgs()

* Also needed for the new nrelease Makefile
DeltaFile
+57-1usr.bin/dsynth/repo.c
+57-11 files