Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (52m)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 15:34:29 UTC Now

2021-04-16 15:10:18 UTC MAIN commitmail json YAML

Change octal and hex parsing to not use strtoul so that they don't handle
'-'. From Martijn van Duren.
Also add a warning if the conversion fails (like the gnu printf does)

(christos)

2021-04-16 13:02:47 UTC MAIN commitmail json YAML

go back to right-aligning the titles for CPU and WCPU.

(christos)

2021-04-16 12:58:54 UTC MAIN commitmail json YAML

Limit buffer size for device capabilities requests as a work-around for PR
kern/56109.

(reinoud)

2021-04-16 08:09:40 UTC MAIN commitmail json YAML

2021-04-16 08:07:02 UTC MAIN commitmail json YAML

when the packet size was just n*MCLBYTES, there was an inconsistency in the length of mbuf.

(ryo)

2021-04-16 07:45:42 UTC MAIN commitmail json YAML

- Remove obsolete cltom(9) and mtocl(9).
- Add missing manual page's link of m_adj.

(msaitoh)

2021-04-16 07:02:09 UTC MAIN commitmail json YAML

spello in comment

(skrll)

2021-04-16 02:33:28 UTC MAIN commitmail json YAML

Restore our local change to remove GNU_STACK program header:

http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c#rev1.13

This was removed accidentally when merging GCC10 into our tree.

Note that some firmwares, e.g., Explora, refuse to execute ELF
kernel image if this program header is present.

Now, GCC10 becomes just fine for all three powerpc sub-archs, i.e.,
oea, booke, and ibm4xx, as far as I can see. No regressions are
observed for ATF.

OK mrg

(rin)

2021-04-16 02:26:43 UTC MAIN commitmail json YAML

Fix regression introduced to GCC10, where it wrongly recognizes 32-bit
processors as POWER9 if -misel flag is specified.

rs6000_machine_from_flags() assumes ISEL instructions are supported only
for POWER9 and successors. However, ISEL is also implemented for 32-bit
booke processors.

Since our kernel for booke is compiled with -misel, this regression
completely breaks it.

As a fix, check whether CPU is 64-bit capable or not, before checking
-misel flag.

The problem has been reported as 100108 to upstream:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100108

OK mrg

(rin)

2021-04-16 02:26:25 UTC MAIN commitmail json YAML

Added missing locking order between sppp and IFNET_LOCK

(yamaguchi)

2021-04-16 02:23:25 UTC MAIN commitmail json YAML

Stop and destroy timeout after sppp_detach and if_detach
for safety

The functions may use resources of pppoe(4) while detaching,
so the release should move after it.

(yamaguchi)

2021-04-16 02:18:04 UTC MAIN commitmail json YAML

Fix regression introduced to GCC10, by which inline assembler codes for
403/405 are miscompiled.

Redundant .machine directive introduced by upstream commit
2d94f7dea9c73ef3c116a0ddc722724578a860fe:

https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=2d94f7dea9c73ef3c116a0ddc722724578a860fe

clobbers CPU flags passed to assembler. This results in miscompile for
inline assembler codes specific to 403/405 processors, at least.

Therefore, revert this commit locally.

The problem has been reported as 100107 to upstream:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100107

OK mrg

(rin)

2021-04-16 02:12:00 UTC MAIN commitmail json YAML

Remove unnecessaly lock holdings to avoid dead lock

The locks were held while callout_halt() and workqueue_wait()
without reason.
And the locks also were held at callout and workqueue handler
so that the handler kicked by those function couldn't acquire
the lock.

The reasons why those are unneccesary are:
- Items of callout_t are protected by callout_lock
- Items of struct workqueue and struct work are protected
  by q_mutex in struct workqueue
- Items of struct sppp_work protected by atomic_cas(3)
- struct pppoe_softc does not free before workqueue_wait() and
  callout_halt() even if the locks are not held

(yamaguchi)

2021-04-16 02:05:37 UTC MAIN commitmail json YAML

Fix not to put the wrong error message

(yamaguchi)

2021-04-16 01:59:50 UTC MAIN commitmail json YAML

Stop ppp layer at first of destroying pppoe interface

(yamaguchi)

2021-04-16 01:44:35 UTC MAIN commitmail json YAML

Sort initialization sequence in pppoe_clone_create() out
for refactoring

It has no functionality impact

(yamaguchi)

2021-04-16 01:32:04 UTC MAIN commitmail json YAML

Use kmem_zalloc to allocate pppoe_softc

(yamaguchi)

2021-04-16 01:28:51 UTC MAIN commitmail json YAML

Move initialization of sc_lock in pppoe_softc to first

The lock may be held in callbacks for ppp layer or other
components so that it should be initialized early.

(yamaguchi)

2021-04-16 01:24:35 UTC MAIN commitmail json YAML

commonize error handling in pppoe_clone_create()

(yamaguchi)

2021-04-16 01:14:38 UTC MAIN commitmail json YAML

restore gcc-8 subdirs and mark as obsolete.  oops.

noted by pgoyette.

(mrg)

2021-04-16 00:13:48 UTC MAIN commitmail json YAML

check the result value of pmap_extract() and panic if it fails.
this is a "should never fail" case, and GCC 10 noticed that it
allows an uninitialised variable use.

tested by rin@ on amiga and mac68k.

(mrg)

2021-04-15 19:06:43 UTC MAIN commitmail json YAML

make: remove type name for the abort status in job handling

(rillig)

2021-04-15 19:02:29 UTC MAIN commitmail json YAML

2021-04-15 18:36:17 UTC MAIN commitmail json YAML

make: rename PrintOutput to PrintFilteredOutput to avoid confusion

In the default configuration, the function PrintOutput did nothing.
Only if the shell has defined an output filter, something happens at
all.

(rillig)

2021-04-15 18:21:27 UTC MAIN commitmail json YAML

make: document two previously unknown bugs in job mode

(rillig)

2021-04-15 17:31:45 UTC MAIN commitmail json YAML

2021-04-15 17:31:16 UTC MAIN commitmail json YAML

2021-04-15 17:28:09 UTC MAIN commitmail json YAML

- Define NEED_ISYSTEM here
- include <bsd.init.mk> now that we can do it, because we need Makefile.rump
  to be included first, so that NOLINT gets defined, so that we don't end up
  building lint modules just for this.

(christos)

2021-04-15 17:26:22 UTC MAIN commitmail json YAML

- Don't define NEED_ISYSTEM. This is a rump thing and should be only exposed
  there.

(christos)

2021-04-15 17:26:07 UTC MAIN commitmail json YAML

- Don't include <bsd.own.mk> It should be done by the enclosing Makefile
- Don't define NEED_ISYSTEM. This is a rump thing and should be only exposed
  there.

(christos)

2021-04-15 14:43:19 UTC MAIN commitmail json YAML

Fix two problems on old topcat(4) framebuffers found on HP332/340.

- Fix panic on monochrome framebuffers. They don't have palette registers.
  The problem was reported from Anders Gustafsson and also Andrew Gillham
  back in 2013:
  https://mail-index.netbsd.org/port-hp300/2013/09/27/msg000086.html
  https://mail-index.netbsd.org/port-hp300/2013/09/28/msg000087.html
- Fix incorrect framebuffer width of 98542/98544 framebuffers on HP332.
  Reported from Andrew Gillham (98542) as above and Chris Hanson (98543):
  https://mail-index.netbsd.org/port-hp300/2013/09/27/msg000083.html
  https://mail-index.netbsd.org/port-hp300/2020/05/01/msg000164.html

Worth to pullup to netbsd-9.

(tsutsui)

2021-04-15 09:05:24 UTC MAIN commitmail json YAML

mtu for revision B0 and B1 is supported up to 16338 bytes

(ryo)

2021-04-15 09:04:42 UTC MAIN commitmail json YAML

fixed the problem of instability when changing mtu in IFF_UP state

(ryo)

2021-04-15 09:04:08 UTC MAIN commitmail json YAML

add support hardware tcp/udp rx checksum offloading

(ryo)

2021-04-15 08:23:24 UTC MAIN commitmail json YAML

Fix fallout from alpha/interrupt.c rev 1.93:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/alpha/alpha/interrupt.c#rev1.93

by which interrupts *seem* to occupy 100% CPU time.

Now, we bump ci_intrdepth for clock interrupt. Therefore, if ci_intrdepth > 1
is observed in statclock(), CPU is actually occupied by interrupts.

Thanks jklos and thorpej for notice!

(rin)

2021-04-15 07:00:50 UTC MAIN commitmail json YAML

avoid second typedef for boolean_t in kernel code originally defined in
<sys/types.h>

(christos)

2021-04-15 06:59:57 UTC MAIN commitmail json YAML

remove extra typedef for vnode_t done in <sys/vnode.h>

(christos)

2021-04-15 05:15:04 UTC MAIN commitmail json YAML

document various gcc warnings that occur frequently enough to
inspire the GCC_NO_* series of variables, and explain some
about what the issues may be for each, hopefully providing some
direction on how to fix new warnings in this space.

christos asked me for this last year, and it's finally complete
enough to commit.  :-)

(mrg)

2021-04-15 05:12:57 UTC MAIN commitmail json YAML

feedback from rin@: alpha and m68k work well, powerpc not so much
but fixes are known.

thanks!

(mrg)

2021-04-15 01:59:51 UTC MAIN commitmail json YAML

i've test-built all platforms.  everything except arm64, x68k and sun2
builds.  many of them work as well.  most mips are (minimally) tested.

(mrg)

2021-04-15 01:57:11 UTC MAIN commitmail json YAML

convert 'extern phys_ram_seg_t mem_clusters[0];' to the '[]' form
so that when this code accesses mem_clustes[0] and mem_clusters[1]
it does't reach out of bounds.

XXX: should be in a header, but it's ugly to fix and i stopped
    when bus_dma.c wouldn't build.

(mrg)

2021-04-15 01:56:00 UTC MAIN commitmail json YAML

vax vs gcc:  fsdb.c loses.  also build this with -O0.

(mrg)

2021-04-15 01:55:21 UTC MAIN commitmail json YAML

one port complains about string overflow here that i can't see.

(mrg)

2021-04-15 01:54:39 UTC MAIN commitmail json YAML

2021-04-15 00:37:31 UTC MAIN commitmail json YAML

intrcnt[] is changed from long to u_int. Use sizeof(var) instead of
sizeof(type) to catch up with this change.

No binary changes as all ports with __HAVE_LEGACY_INTRCNT are ILP32, IIUC.

(rin)

2021-04-15 00:32:50 UTC MAIN commitmail json YAML

dk_start(): retry device-dependent start() routine later, also when it
returns ENOMEM in addition to EAGAIN.

Device-dependent start() routine may allocate buffer directly, or via
bus_dma(9) API (some implementations for bus_dma(9) like alpha allocate
memory internally).

If these attempts fail with ENOMEM, this is not a disk error, therefore
we must retry later, as already done for EAGAIN.

(rin)

2021-04-15 00:19:52 UTC MAIN commitmail json YAML

Contrary to comment here, nowadays hardclock() and statclock() should be
called with cpu_intr_p() is turning on, if used from the interrupt context.

Otherwise, entropy_enter() is used instead of entropy_enter_intr(), which
results in KASSERT() failure.

Therefore, bump ci_intrdepth for clock interrupt. Remove stale comment also.

(rin)

2021-04-15 00:11:10 UTC MAIN commitmail json YAML

Fix inverted logic!!

vmem_xalloc(9) should be used with VM_NOSLEEP for BUS_DMA_NOWAIT.

(rin)

2021-04-15 00:04:07 UTC MAIN commitmail json YAML

sandpoint has its own module_init_md(). So, do not compile in
that function in powerpc_machdep.c.

(rin)

2021-04-15 00:00:46 UTC MAIN commitmail json YAML

Use uvm_km_alloc(9) with UVM_KMF_NOWAIT flag in pte_enter(), in order not to
sleep in pmap_enter(9) and pmap_kenter_pa(9), which can result in dead lock.

In most cases, pmap_enter(9) is used with PMAP_CANFAIL flag. In this case,
if pte_enter() fails due to uvm_km_alloc(9), we can safely return ENOMEM.
UVM layer will take care of it.

uvm_km_alloc(9) fails for pmap_enter(9) without PMAP_CANFAIL or for
pmap_kenter_pa(9), we have no choice but to panic there.

However, my testbeds for 403 and 405 survive more than a week at least
without hitting this panic.

(rin)

2021-04-14 23:45:11 UTC MAIN commitmail json YAML

Style fixes:

- Add "static inline" to pte_enter(), to match with its declaration.
- Remove parentheses from return.
- Use NULL instead of 0 for pointer initialization.

No binary changes.

(rin)

2021-04-14 22:08:28 UTC MAIN commitmail json YAML

lint: remove stray semicolon from grammar, make empty rule visible

No functional change.

(rillig)

2021-04-14 22:06:38 UTC MAIN commitmail json YAML

tests/lint: adjust test for C11 to the change in grammar and options

(rillig)

2021-04-14 21:29:57 UTC MAIN commitmail json YAML

use an enum instead of constant variables so that they work in CTASSERT.

(christos)

2021-04-14 21:20:21 UTC MAIN commitmail json YAML

there is also an optional type qualifier list in the array size

(christos)

2021-04-14 21:20:02 UTC MAIN commitmail json YAML

gnu enables c11 extensions

(christos)

2021-04-14 20:35:31 UTC MAIN commitmail json YAML

lint: un-abbreviate code for passing options to cpp, lint1 and lint2

No functional change.

(rillig)

2021-04-14 20:06:40 UTC MAIN commitmail json YAML

lint: add option to accept C11 features

The list of available letters for the command line options gets shorter
and shorter.  Most of the interesting letters are already used for some
warning categories.  Curiously, -A, -W and -E were all still available.

The option -A nicely matches the intention of the option, which is to
allow a certain set of language features.  To keep the option available
for further extensions, define -Ac11 as the currently only valid option
of that kind.  This allows straight-forward extension for C17 and future
language standards, as well as independent feature-sets.  The options -W
and -E may someday complement the -A option, using the allow/warn/error
categories.

(rillig)

2021-04-14 19:25:48 UTC MAIN commitmail json YAML

lint: arrange options in the usage messages

* lowercase the word 'usage'
* group the preprocessor flags on a line of their own
* add missing closing ']' for '-X'
* properly indent the lines

(rillig)

2021-04-14 18:38:06 UTC MAIN commitmail json YAML

lint: remove redundant condition in update_location

(rillig)

2021-04-14 18:35:40 UTC MAIN commitmail json YAML

2021-04-14 18:27:11 UTC MAIN commitmail json YAML

2021-04-14 17:39:11 UTC MAIN commitmail json YAML

make: let the compiler decide whether to inline string functions

On x86_64, this reduces the binary size by 2 kB.

(rillig)

2021-04-14 17:24:48 UTC MAIN commitmail json YAML

make: turn run-time string concatenation into compile-time

No functional change.

(rillig)

2021-04-14 17:20:48 UTC MAIN commitmail json YAML

make: remove unnecessary modifier ':U' for certain fixed expressions

No functional change, since the expression is evaluated using
VARE_WANTRES, not using VARE_UNDEFERR.

(rillig)

2021-04-14 16:59:34 UTC MAIN commitmail json YAML

make: reduce memory allocations in the modifiers ':D' and ':U'

(rillig)

2021-04-14 16:26:23 UTC MAIN commitmail json YAML

2021-04-14 16:12:26 UTC MAIN commitmail json YAML

make: rename members of ModifyWord_LoopArgs

No functional change.

(rillig)

2021-04-14 15:41:08 UTC MAIN commitmail json YAML

make: clean up pattern flags for the modifiers ':S' and ':C'

No special handling is necessary for C90 since none of the struct
members is a const_member.

The prefix 'Var' is not necessary since this type does not apply to a
variable but only to a modifier.

No functional change.

(rillig)

2021-04-14 13:34:08 UTC MAIN commitmail json YAML

support parsing c99's static class for array size expressions.

(christos)

2021-04-14 12:20:59 UTC MAIN commitmail json YAML

lto-common.c needs the stack protector treatment

(christos)

2021-04-14 09:29:40 UTC MAIN commitmail json YAML

2021-04-14 08:31:25 UTC MAIN commitmail json YAML

build lfs_node.c with -O3 on ia64 to avoid assembler overflow issues.

(mrg)

2021-04-14 08:07:49 UTC MAIN commitmail json YAML

for GCC, built memset.c with -fno-builtin.  this avoids GCC 10 compiling
memset() and emitting calls to memset() where it seems code that looks
like what memset() does, which ends up recursing and blowing the stack.

this makes mips userland with GCC 10 work.

(mrg)

2021-04-14 07:56:23 UTC MAIN commitmail json YAML

OpenSSL man pages have moved

(nia)

2021-04-14 07:52:53 UTC MAIN commitmail json YAML

intro.3: add a few

(nia)

2021-04-14 06:32:20 UTC MAIN commitmail json YAML

2021-04-14 05:43:09 UTC MAIN commitmail json YAML

Fix the problem "pcictl pci0 list" causes "panic: trap_el1h_error" on rockpro64.

The panic occures in bus_space_barrier() in rk3399_pcie.c:rkpcie_conf_read().
We expected bus_space_peek_4() to trap and recover in the path
trap_el1h_sync() -> data_abort_handler(), but In fact, the read is delayed
until bus_space_barrier(), and we get an SError interrupt (trap_el1h_error)
instead of a Synchronous Exception (trap_el1h_sync).

To catch this correctly, An implicit barrier in bus_space_peek have been added,
and trap the SError interrupt to recover from.

(ryo)

2021-04-14 02:48:00 UTC MAIN commitmail json YAML

2021-04-14 02:45:58 UTC MAIN commitmail json YAML

2021-04-14 02:45:40 UTC MAIN commitmail json YAML

use the first element of the array instead

(christos)

2021-04-14 01:19:13 UTC MAIN commitmail json YAML

dtrace systrace.c issue fixed by christos (thanks!)

mips issue is related to memset.c miscompiling and does not
appear with -ffreestanding (thanks joerg & simonb.)

(mrg)

2021-04-13 23:57:23 UTC MAIN commitmail json YAML

2021-04-13 22:46:13 UTC MAIN commitmail json YAML

2021-04-13 22:45:32 UTC MAIN commitmail json YAML

Elide [NUM] in arguments for systrace, use the first address of the array
and cast to intptr_t instead.

(christos)

2021-04-13 22:24:56 UTC MAIN commitmail json YAML

note amd64 dtrace issue is only warning for now.
note that i386 has problems in -current.

(mrg)

2021-04-13 22:23:42 UTC MAIN commitmail json YAML

Pass -isystem and -imacro ccp flags to lint

(christos)

2021-04-13 22:22:02 UTC MAIN commitmail json YAML

Allow type attributes after function pointer parameters

(christos)

2021-04-13 22:21:19 UTC MAIN commitmail json YAML

add a test for a type attribute after a param function pointer

(christos)

2021-04-13 19:16:51 UTC MAIN commitmail json YAML

apply -Wno-error=array-bounds for GCC 10.

these trigger "pointer to end of array" issues, and i'm not
entirely sure what is happening in the code generated for the
two "INDIR" system calls from syscalls.master.

(mrg)

2021-04-13 13:18:50 UTC MAIN commitmail json YAML

Make LCD BrightnessUp/BrightnessDown work on C7x0/860.

Patch from steleto:
https://gist.github.com/steleto/10f62a074bff0c188fcc10c14ef40b5a
and also confirmed by me on SL-C700.

Worth to pullup to netbsd-9.

(tsutsui)

2021-04-13 13:13:04 UTC MAIN commitmail json YAML

2021-04-13 10:10:25 UTC MAIN commitmail json YAML

with dtrace enabled, there is at least one remaining issue for amd64.

(mrg)

2021-04-13 09:28:42 UTC MAIN commitmail json YAML

ignore a "should be impossible" uninitialised variable error.

(mrg)

2021-04-13 09:20:55 UTC MAIN commitmail json YAML

XXX: ignore warning about overlapping buffers for sprintf().

(mrg)

2021-04-13 08:57:39 UTC MAIN commitmail json YAML

sparc and amd64 successfully finished their atf runs.

(mrg)

2021-04-13 08:55:06 UTC MAIN commitmail json YAML

2021-04-13 08:22:40 UTC MAIN commitmail json YAML

update the status of GCC.  summary:  mostly looking good.

- all targets build or can be attempted
- arm64 needs __aarch64_swp1_acq in both libgcc and libkern
- earmv4 works, earmv7hf works, all arm32 builds, rest untested
- hppa, most/all m68k, alpha, and most ppc builds, none tested
- ia64 kernel runs as well as before, userland fails to build
- i386 runs, seems mostly fine except lib/libc/sys/t_ptrace_wait
  resume test is hung, and cpu-spinning in a zombie
- sun2 grew again, too large but builds besides RAMDISK not fitting
- mips seems problematic.  some kernels fail some work, userland
  has problems with both static and dynamic n32 and n64 programs
- sh3el seems ok in gxemul/landisk, sh3eb not tested
- vax seems OK in simh (same c++ exception issues)

all ports kernels have been tested to build (though perhaps with
some uncommited changes only needed for some, while most changes
are commited, about 15 are not but many ports build without them.)

(mrg)

2021-04-13 08:06:38 UTC MAIN commitmail json YAML

avoid duplicating symbols in libterminfo.

(mrg)

2021-04-13 08:06:11 UTC MAIN commitmail json YAML

make this match the builtin prototypes.

(mrg)

2021-04-13 07:53:59 UTC MAIN commitmail json YAML

2021-04-13 07:53:19 UTC MAIN commitmail json YAML

some platforms trip -fcommon here too.  we should fix this.

(mrg)

2021-04-13 06:30:36 UTC MAIN commitmail json YAML

2021-04-13 06:25:49 UTC MAIN commitmail json YAML

more GCC 10 fixes.

mDNSResponder: another wrong return local address

dhcp: ignore a seemingly impossible stringop overflow

hpacel: avoid maybe uninitialised error that is wrong.

rsh: avoid impossible malloc(0)

udf: cast pointers through (uintptr_t) to fool invalid boundary checks

(mrg)

2021-04-13 05:58:45 UTC MAIN commitmail json YAML

avoid potential uninitialised variable use.

(mrg)

2021-04-13 05:28:16 UTC MAIN commitmail json YAML

GCC 10 does not like casting from one identical anonymous enum
to another enum.  supply some quietening cast.

(mrg)

2021-04-13 05:04:54 UTC MAIN commitmail json YAML

Reschedule softint to process packets enqueued to ppoediscinq
while doing pppoe_data_input

And added a empty check for ppoeinq, for safety

(yamaguchi)

2021-04-13 05:00:06 UTC MAIN commitmail json YAML

Added missing counter clear when a pppoe state changes to PADI_SENT

(yamaguchi)

2021-04-13 04:59:00 UTC MAIN commitmail json YAML

apply some -Wno- to ignore several new warnings with GCC 10.

ntp: ignore truncation beyond api sizes, and ignore wrongly
guessed underflow

tmux: ignore maybe uninitialised warning for impossible case

libbfd: signed/unsigned variables assigned in the same statement

dri/gallium: -Wno-builtin-declaration-mismatch for u_atomic.c as
it implements backend functions with different in-C-machine but
same-in-real-machine types

libXfont/libXfont2: signed/unsigned variables assigned in the same
statement

i915drm: ignore impossible maybe uninitialised warnings

sysinst: ignore an invalid string truncation issue

(mrg)

2021-04-13 04:57:15 UTC MAIN commitmail json YAML

Added a NULL check for parent interface of pppoe

(yamaguchi)

2021-04-13 04:53:22 UTC MAIN commitmail json YAML

Hold the lock for pppoe while referencing sc_id
that is an item of struct pppoe_softc

(yamaguchi)

2021-04-13 04:52:01 UTC MAIN commitmail json YAML

2021-04-13 04:14:46 UTC MAIN commitmail json YAML

use -fcommon here too.

(mrg)

2021-04-13 04:13:52 UTC MAIN commitmail json YAML

remove extra line that clearly isn't meant to be there and may trigger
uninitialised reads of variables.

(mrg)

2021-04-13 03:27:14 UTC MAIN commitmail json YAML

2021-04-13 03:09:42 UTC MAIN commitmail json YAML

ensure that pointer is filled in when used upon return.

(mrg)

2021-04-13 02:11:40 UTC MAIN commitmail json YAML

no longer need -Wno-error=implicit-fallthrough.
don't provide common symbols that are in libterminfo now days.

(mrg)

2021-04-13 02:07:35 UTC MAIN commitmail json YAML

increase the size of a buffer by 1 byte.

i think GCC 10 is right here.

(mrg)

2021-04-13 01:50:46 UTC MAIN commitmail json YAML

properly terminate after using strncpy().

(mrg)

2021-04-13 01:38:04 UTC MAIN commitmail json YAML

properly terminate a string after strncpy().

(mrg)

2021-04-13 01:15:57 UTC MAIN commitmail json YAML

2021-04-13 01:11:06 UTC MAIN commitmail json YAML

2021-04-13 01:10:24 UTC MAIN commitmail json YAML

in struct evcnt_sysctl, change ev_strings[0] to ev_strings[].

GCC 10 does not like accesses to zero length arrays.

(mrg)

2021-04-13 00:31:54 UTC MAIN commitmail json YAML

fake-use alloca()'s return value to quieten -Werror=unused-result

(mrg)

2021-04-13 00:29:42 UTC MAIN commitmail json YAML

allocate the potential trailing nul as well.

(mrg)

2021-04-13 00:29:22 UTC MAIN commitmail json YAML

pass dest buffer size to strncpy() and ensure nul termination.

(mrg)

2021-04-12 18:53:51 UTC MAIN commitmail json YAML

make: spell SysV in mixed case

No functional change.

(rillig)

2021-04-12 18:48:00 UTC MAIN commitmail json YAML

make: reduce memory allocation and strlen calls in modifier ':from=to'

Previously, SysVMatch was quite verbose and felt like hand-optimized
assembler code, which made it difficult to discover the underlying idea
of the code.

All this code was replaced with two simple calls to Substring_HasPrefix
and Substring_HasSuffix.  Now that the operands of that modifier are no
longer passed as C strings, there is no need to collect all information
in a single scan through the word and the pattern.

It was not necessary to call Var_Subst unconditionally.  Calling it only
when the string contains a '$' saves another memory allocation and two
string copies (because of the Buf_DoneDataCompact).

No functional change.

(rillig)

2021-04-12 16:09:57 UTC MAIN commitmail json YAML

tests/make: fix test for modifier ':from=to'

I had forgotten to remove the single quotes, to produce a really empty
word.  Plus I had forgotten the modifier ':Q' for the result, which
meant that the single quotes did not show up in the output.

(rillig)

2021-04-12 16:04:31 UTC MAIN commitmail json YAML

tests/make: add table test for the modifier ':from=to'

Just to prevent any accidental change in the upcoming refactoring to
reduce memory allocation in ApplyModifier_SysV.

(rillig)

2021-04-12 15:55:26 UTC MAIN commitmail json YAML

2021-04-12 15:54:55 UTC MAIN commitmail json YAML

Add an example of attribute fallthrough

(christos)

2021-04-12 13:28:35 UTC MAIN commitmail json YAML

make: in the ':Q' modifier, only allocate memory if necessary

(rillig)

2021-04-12 12:22:10 UTC MAIN commitmail json YAML

hdaudioctl.8: add missing arguments

pointed out by RVP

(nia)

2021-04-12 11:35:22 UTC MAIN commitmail json YAML

Print target addresses similar to aarch64 as "address <sym+off>"
instead of "<sym+off> [addr:address]".  Uses less columns, a bit
easier on the eyes.

(simonb)

2021-04-12 09:51:53 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/lib/libbacktrace/arch/earmhf/backtrace-supported.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libgcc/arch/earmhf/auto-target.h@1.7 / diff / nxr@1.7
src/external/gpl3/gcc/lib/libgcc/arch/earmhf/defs.mk@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhf/defs.mk@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhf/gcov-iov.h@1.16 / diff / nxr@1.16
src/external/gpl3/gcc/lib/libgomp/arch/earmhf/config.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libgomp/arch/earmhf/libgomp_f.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgomp/arch/earmhf/omp.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libobjc/arch/earmhf/defs.mk@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm/gstdint.h@1.27 / diff / nxr@1.27
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/gstdint.h@1.25 / diff / nxr@1.25
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/c++config.h@1.33 / diff / nxr@1.33
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/cxxabi_tweaks.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/defs.mk@1.17 / diff / nxr@1.17
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/gstdint.h@1.24 / diff / nxr@1.24
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/symver-config.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/gstdint.h@1.25 / diff / nxr@1.25
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/gstdint.h@1.25 / diff / nxr@1.25
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/gstdint.h@1.25 / diff / nxr@1.25
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/gstdint.h@1.24 / diff / nxr@1.24
      :
(more 62 files)
mknative-gcc for GCC 10 and earm ports (now including earmv7hf) after
the arm/netbsd-elf.h fix.  shark appears to work at least now.

(mrg)

2021-04-12 09:30:32 UTC MAIN commitmail json YAML

avoid attempting to print NULL.

(mrg)

2021-04-12 09:29:53 UTC MAIN commitmail json YAML

use strlcpy() to ensure desired nul termination.
trailing nul bytes are not needed here.

(mrg)

2021-04-12 09:24:25 UTC MAIN commitmail json YAML

avoid uninitialised variable access.  make this case like the other 2 around it.

(mrg)

2021-04-12 09:23:33 UTC MAIN commitmail json YAML

handle cd1400_compute_baud() failure and avoid reading uninitialised
variables.

(mrg)

2021-04-12 09:22:58 UTC MAIN commitmail json YAML

be sure to only access vcpu if it was initialised.

(mrg)

2021-04-12 09:22:21 UTC MAIN commitmail json YAML

convert union member from [0] array to [3] array, so that attempts
to access these members later will  work.

does not affect size of the structure or layout in any other way.

(mrg)

2021-04-12 09:19:10 UTC MAIN commitmail json YAML

use libsa/saerrno.h instead of our own errno definitions.

(mrg)

2021-04-12 09:18:45 UTC MAIN commitmail json YAML

2021-04-12 09:18:14 UTC MAIN commitmail json YAML

properly terminate a buffer after strncpy().

(mrg)

2021-04-12 09:17:48 UTC MAIN commitmail json YAML

pass the right enum to krb5_auth_con_setkeytype().

(mrg)

2021-04-12 09:17:10 UTC MAIN commitmail json YAML

avoid an unlikely buffer truncation.

(mrg)

2021-04-12 09:15:52 UTC MAIN commitmail json YAML

add a default: case to __kernel_standard(), failing with EDOM

(mrg)

2021-04-12 09:12:28 UTC MAIN commitmail json YAML

avoid leaving off the trailing nul in a literal string.

(mrg)

2021-04-12 09:03:39 UTC MAIN commitmail json YAML

arm/netbsd-elf.h is necessary for eabi targets.

(mrg)

2021-04-12 08:55:22 UTC MAIN commitmail json YAML

properly size a buffer to include the trailing nul.

(mrg)

2021-04-12 08:54:11 UTC MAIN commitmail json YAML

avoid common symbols.

(mrg)

2021-04-12 08:31:30 UTC MAIN commitmail json YAML

updates:
- arm64 doesn't build (missing __aarch64_swp1_acq in kernels)
- mips cpu targets all build (maybe not all ports)
- powerpc builds (maybe not all ports)

(mrg)

2021-04-12 08:29:20 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgcc/arch/powerpc/auto-target.h@1.7 / diff / nxr@1.7
src/external/gpl3/gcc/lib/libgcc/arch/powerpc/defs.mk@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/auto-target.h@1.7 / diff / nxr@1.7
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk@1.12 / diff / nxr@1.12
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc/defs.mk@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc/gcov-iov.h@1.17 / diff / nxr@1.17
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64/defs.mk@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64/gcov-iov.h@1.13 / diff / nxr@1.13
src/external/gpl3/gcc/lib/libgomp/arch/powerpc/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgomp/arch/powerpc/libgomp_f.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgomp/arch/powerpc/omp.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/libgomp_f.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/omp.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libobjc/arch/powerpc/defs.mk@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libobjc/arch/powerpc64/defs.mk@1.7 / diff / nxr@1.7
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h@1.38 / diff / nxr@1.38
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/cxxabi_tweaks.h@1.8 / diff / nxr@1.8
      :
(more 26 files)
mknative-gcc for GCC 10.3 and powerpc ports.

(mrg)

2021-04-12 07:23:06 UTC MAIN commitmail json YAML

merge our changes into GCC 10.  parts of the rs6000.c file were
split into separate files, and an old change to rs6000.c now
belongs in rs6000-logue.c.

(mrg)

2021-04-12 06:42:31 UTC MAIN commitmail json YAML

Reapply font calculation fix.

(mlelstv)

2021-04-12 06:08:31 UTC MAIN commitmail json YAML

2021-04-12 05:11:10 UTC MAIN commitmail json YAML

fix a buffer size (off by one), and fix all the comments for the
3 other correctly sized buffers with the same comment/context.

(mrg)

2021-04-12 04:41:54 UTC MAIN commitmail json YAML

include bsd.own.mk to make sure $S is set.

(mrg)

2021-04-12 04:19:32 UTC MAIN commitmail json YAML

include bsd.own.mk to be sure NETBSDSRCDIR is set.

(mrg)

2021-04-12 04:18:38 UTC MAIN commitmail json YAML

add GCC_NO_IMPLICIT_FALLTHRU, GCC_NO_MAYBE_UNINITIALIZED, and
GCC_NO_RETURN_LOCAL_ADDR.

(mrg)

2021-04-12 04:09:26 UTC MAIN commitmail json YAML

2021-04-12 03:57:07 UTC MAIN commitmail json YAML

2021-04-12 03:55:41 UTC MAIN commitmail json YAML

2021-04-12 02:54:09 UTC MAIN commitmail json YAML

2021-04-12 02:49:02 UTC MAIN commitmail json YAML

avoid assigning both signed and unsigned variables in the same statement.

(mrg)

2021-04-12 02:23:41 UTC MAIN commitmail json YAML

avoid duplicate "ddb_regs" in crash with GCC 10 and -fcommon default.

(mrg)

2021-04-12 02:23:02 UTC MAIN commitmail json YAML

make a numeric literal unsigned as it is bit-negated.

(mrg)

2021-04-12 02:09:27 UTC MAIN commitmail json YAML

create the gcc-10 subdirs, and don't create the gcc-8 ones.

(mrg)

2021-04-12 02:09:00 UTC MAIN commitmail json YAML

2021-04-12 01:18:13 UTC MAIN commitmail json YAML

don't run the "offline" or "nointr" tests by default.  they exercise
bugs that exist in the current code and leave the target machine in
a broken state, requiring ddb or hard reset.

setting ATF_USR_SBIN_CPUCTL_OFFLINE_ENABLE to any non-empty string
will enable these tests again.

(mrg)

2021-04-12 00:05:56 UTC MAIN commitmail json YAML

various changes to get GCC 10 to build here.

- fix path to compiler-specific includes
- missing (void) for (older) C
- fix __is_signed/__is_signed_val change
- avoid compiler warning-as-errors
- add to existing COPTS.file values, instead of setting
- bump libgomp minor; functions were added
- add new 'compare' c++ header
- handle new analyzer subdirectory.  set TARGET_MACHINE for lto-streamer-in.c.
  remove params.list etc handling.
- coroutines.cc is another .cc not .c.  adjust .PATH to suit.
- add new lto1 sources
- couple of files not in /arch/ subdirs missed in mknative update.

rs6000.c is still not merged.

(mrg)

2021-04-11 23:55:47 UTC MAIN commitmail json YAML

add a netbsd version for GCC 10.  properly generate omp-device-properties.h.

(mrg)

2021-04-11 23:54:29 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/dist/libsanitizer/ChangeLog@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/LOCAL_PATCHES@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/MERGE@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/Makefile.in@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/aclocal.m4@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/asan/Makefile.am@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/asan/Makefile.in@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_activation.cc@1.3 / diff / nxr@1.3
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_activation.cpp deleted
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_activation.h@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_activation_flags.inc@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_allocator.cc@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_allocator.cpp deleted
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_allocator.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_debugging.cc@1.3 / diff / nxr@1.3
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_debugging.cpp deleted
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_descriptions.cc@1.3 / diff / nxr@1.3
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_descriptions.cpp deleted
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_descriptions.h@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_errors.cc@1.3 / diff / nxr@1.3
      :
(more 543 files)
revert sanitizer back to the version we were using with GCC 9, since
that one was already newer than the GCC 10 version.

(mrg)

2021-04-11 22:53:46 UTC MAIN commitmail json YAML

make: improve performance for LazyBuf

The previous O(n^2) time complexity for parsing a long string with many
variable expressions was not meant to last for long.  I had hoped to fix
it within a few minutes, but that will take more time.

For now, make LazyBuf simpler by using a traditional C string for the
expected part instead of a Substring.  This avoids a strlen call per
Var_Parse.

No functional change, only performance.

(rillig)

2021-04-11 21:29:57 UTC MAIN commitmail json YAML

make: remove redundant parameter from ParseVarnameLong

No functional change.

(rillig)

2021-04-11 20:38:43 UTC MAIN commitmail json YAML

make: migrate ParseModifierPart to use Substring

This will reduce memory allocation for modifier parts without the escape
characters '$' or '\'.

No functional change.

(rillig)

2021-04-11 20:27:11 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/lib/libbacktrace/arch/aarch64/backtrace-supported.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libbacktrace/arch/aarch64eb/backtrace-supported.h@1.3 / diff / nxr@1.3
src/external/gpl3/gcc/lib/libbacktrace/arch/alpha/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/earm/backtrace-supported.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libbacktrace/arch/earmeb/backtrace-supported.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libbacktrace/arch/earmhfeb/backtrace-supported.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv4/backtrace-supported.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv4eb/backtrace-supported.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6eb/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6hf/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6hfeb/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7eb/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7hf/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7hfeb/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/hppa/backtrace-supported.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc/lib/libbacktrace/arch/i386/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/ia64/backtrace-supported.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libbacktrace/arch/m68000/backtrace-supported.h@1.8 / diff / nxr@1.8
      :
(more 827 files)
mknative-gcc for GCC 10 and almost all platforms.  one of the
myriad of arm platforms, and the powerpc* platforms are not
yet done.

(mrg)

2021-04-11 19:05:06 UTC MAIN commitmail json YAML

make: avoid unnecessary calls to strlen when evaluating modifiers

No functional change.

(rillig)

2021-04-11 18:44:58 UTC MAIN commitmail json YAML

make: migrate ModifyWord functions to use Substring

This benefits the modifiers ':T' and ':H' since these scan the word from
the end.  The SysV modifier '.c=.o' does not benefit yet, this will be
done in a follow-up commit.

Currently ModifyWords calls strlen for each single word, which degrades
performance.  This will be cleaned up in a follow-up commit as well.

No functional change.

(rillig)

2021-04-11 18:18:39 UTC MAIN commitmail json YAML

Provide a default preferred I/O size.

(mlelstv)

2021-04-11 18:17:22 UTC MAIN commitmail json YAML

Don't truncate disk size to full cylinders.

(mlelstv)

2021-04-11 17:48:01 UTC MAIN commitmail json YAML

make: migrate handling of the modifier ':S,from,to,' to Substring

Right now this does not gain any performance, it only makes the code in
ModifyWord_Subst a little simpler since it only uses
Buf_AddBytesBetween, not a mixture with Buf_AddBytes.

When the word passed to the ModifyWord functions is converted to
Substring as well, the call to strlen will become redundant.

No functional change.

(rillig)

2021-04-11 16:21:05 UTC MAIN commitmail json YAML

Restore r1.3 of modes.inc: we are using this directory for the
-m32 compat builds on sparc64, where the sparcv9 instructions
and the GHASH asm code are usefull.

(martin)

2021-04-11 13:35:56 UTC MAIN commitmail json YAML

make: clean up remaining references to VarEvalFlags

VarEvalFlags has been replaced with VarEvalMode.  There were some
comments and tests that still referred to the old names.

No functional change.

(rillig)

2021-04-11 12:46:55 UTC MAIN commitmail json YAML

make: avoid allocating memory for simple variable names

The main change is in ParseVarname, where a Buffer is replaced with the
newly introduced LazyBuf.  LazyBuf is inspired by
https://golang.org/src/path/path.go.

In CanonicalVarname, the pre-comparison of the first letter of the
variable name is no longer necessary.  GCC 9 optimizes a fixed-length
memcmp so well that the code can finally be written to target human
readers, leaving the optimization to the compiler.

(rillig)

2021-04-11 12:06:53 UTC MAIN commitmail json YAML

make: add types Substring and LazyBuf

These will be used for making the string handling more efficient,
avoiding allocations, especially when evaluating variable expressions.

Since the string handling has grown quite a bit in the last months,
extract it into its own header file.

No functional change.

(rillig)

2021-04-11 11:41:27 UTC MAIN commitmail json YAML

make: clean up Makefile

The dependencies on the header files are handled by 'make depend'.  They
do not need to be spelled out.

(rillig)

2021-04-11 11:05:50 UTC MAIN commitmail json YAML

ctwmrc: add DontShowWelcomeWindow, new in 4.x

(nia)

2021-04-11 11:00:30 UTC MAIN commitmail json YAML

2021-04-11 10:52:16 UTC MAIN commitmail json YAML

ctwm: build autogenerated files from gen/

(nia)

2021-04-11 10:51:49 UTC MAIN commitmail json YAML

Remove accidental duplicates of autogenerated files

(nia)

2021-04-11 10:29:50 UTC MAIN commitmail json YAML

Update build recipe for ctwm-4.0.3

(nia)

2021-04-11 10:11:58 UTC MAIN commitmail json YAML

Merge ctwm-4-0-3

# CTWM Change History

## 4.0.3  (2019-07-21)

### Bugfixes

1. Perform various manipulations and overrides of `WM_HINTS` property
  when it gets reset during runtime, like we do when initially adopting
  the window.  The most visible effect of this was in windows that don't
  give a focus hint (which we override to give focus), but then reset
  `WM_HINTS` later and still don't give us a hint, where we wound up not
  re-overriding previously.  Reported for `xvile` by Wayne Cuddy.

1. The font height estimation changes in 4.0.0 were not applied correctly
  when UseThreeDMenus was set, leading to some odd vertical misalignment
  of the text with some fonts.  Reported by Wayne Cuddy.

1. A failure in OTP consistency checks caused by the handling of
  transients of fullscreen windows has been fixed.  This manifested as
  failures in OtpCheckConsistencyVS() assertions.

## 4.0.2  (2018-08-25)

### Backward-Incompatible Changes And Removed Features

1. The `UseThreeDIconBorders` config var has been removed.  It came in
  silently and undocumented in 3.4 and has never done anything.

1. The attempts to use DNS lookups for setting the `HOSTNAME` `m4` variable
  have been removed; it is now just a duplicate of `CLIENTHOST`.

### New Features

1. The EWMH `_NET_WM_NAME` property is now supported, and used for the
  window name in place of the ICCCM `WM_NAME` when set.  By default, we
  also accept `UTF8_STRING` encoded `WM_NAME` as a result of this
  change; see below for var to restore historical strictness.

1. The EWMH `_NET_WM_ICON_NAME` property is now supported, and used for
  the icon name in place of the ICCCM `WM_ICON_NAME` when set.  Similar
  comments as above apply to the encodings.

1. Support has been added for `CTWM_WM_NAME` and `CTWM_WM_ICON_NAME`
  properties, which will override any window/icon names otherwise
  specified.  This may be useful for applications that set unhelpful
  names themselves, or for manually adjusting labelling.  These
  properties can be set from the command line via `xprop`; as an
  example, `xprop -f CTWM_WM_NAME 8u -set CTWM_WM_NAME "awesome
  windowsauce"`.  See `xprop(1)` manual for details; the `s`, `t`, and
  `u` field type specifiers will all work.

1. When no icon name is set for a window, we've always used the window
  name for the icon name as well.  But that only happened the first time
  the window name is set; after that, the icon name is stuck at the
  first name.  It now updates along with the window name, if no icon
  name is set.

1. All icon manager windows will now have the `TwmIconManager` class set
  on them, so they can be addressed en mass by other config like
  `NoTitle` by that class name.

### New Config Options

1. Added `DontNameDecorations` config option to disable setting names on
  the X windows we create for window decoration (added in 4.0.0).  These
  have been reported to confuse `xwit`, and might do the same for other
  tools that don't expect to find them on non-end-app windows.  Reported
  by Frank Steiner.

1. Added `StrictWinNameEncoding` config option to enable historical
  behavior, where we're reject invalid property encoding for window
  naming properties (like a `UTF8_STRING` encoded `WM_NAME`).

### Bugfixes

1. Fix up broken parsing of `IconifyStyle "sweep"`.  Bug was introduced
  in 4.0.0.

1. When multiple X Screens are used, building the temporary file for m4
  definitions could fail with an error from `mkstemp()`.  Reported by
  Manfred Knick.

1. When multiple X Screens are used, the OTP code didn't recognize the
  difference, and kept everything in one list.  This caused the internal
  consistency checks to trip when it didn't find all the windows it
  expected.  Reported by Terran Melconian.

1. When `ReverseCurrentWorkspace` is set, mapping windows not on the
  current workspace (e.g., via restarting ctwm, or creating new windows
  with the desktop set via EWMH properties) could segfault.  Reported by
  Sean McAllister.

1. Fix some edge cases where we'd fight other apps' focus handling.  When
  an application moved focus itself to an unrelated (in X terms) window,
  our processing would often race and re-move the focus to the root
  ourselves.  This was visible with e.g. sub-windows in Firefox for
  context menu and urlbar dropdown, which would flash on and then
  disappear.

1. When creating a new transient window of an existing full-screen
  window, the OTP stacking may cause it to be stuck below the main
  window due to the special handling of full-screen focused windows in
  EWMH.  It should now be forced to the top.

1. Building ctwm since 4.0.0 in certain locales could misorder functions
  in the lookup table, leading to troubles parsing the config file.
  You'd get some loud "INTERNAL ERROR" lines from ctwm when running it
  if this were the case.  Now fixed.  Reported by Richard Levitte.

## 4.0.1  (2017-06-05)

### User Visible Changes

1. Fix a bug where fullscreen windows could sometimes wind up incorrectly
  stacked due to a focus-handling issue.  This would lead to ctwm
  aborting with an assertion failure in the OTP code, like `Assertion
  failed: (PRI(owl) >= priority), function OtpCheckConsistencyVS`.

1. Fix an edge case (probably only triggerable via manual work with EWMH
  messages) where a window could wind up resized down to nothing.

### Internals

1. Systems with the ctfconvert/ctfmerge tools available will now use them
  to include CTF info in the compiled binary.  This allows more detailed
  inspection of the running process via DTrace (e.g., the layout of the
  structs).

1. The initial rumblings of a Developer's Manual are now in
  `doc/devman/`.  This isn't tied into the main build, and there's no
  real reason it ever will be.  Things of interest to _users_ should
  wind up in the main manual; this should only have things of interest
  to people _developing_ ctwm.

## 4.0.0  (2017-05-24)

### Build System Change

The old `imake` build system has been replaced by a new structure using
`cmake`.  This makes [cmake](https://cmake.org/) a requirement to build
ctwm.  See the `README.md` file for how to run it.

A fallback minimal build system is available in the `minibuild/`
directory for environments that can't use the main one.  This is likely
to need some manual adjustment on many systems, and the main build is
strongly preferred.  But it should suffice to get a runnable binary if
all else fails.

### Platform Support

Support for many non-current platforms has been dropped.  In particular,
remnants of special-case VMS support have been removed.  Many old and now
dead Unix variants have been similarly desupported.  Generally, platforms
without support for C99 and mid-2000's POSIX are increasingly less likely
to work.

### Backward-Incompatible Changes And Removed Features

1. Argument parsing has been rewritten to use `getopt_long()`.  All
  `-long` options are now `--long` instead.  `-version`, `-info`,
  `-cfgchk`, and `-display` are still accepted if they're the first
  option given, to make it easier for scripts to simultaneously support
  before/after versions; this shim will be removed in a later version.

1. Support for the SDSC imconv library, and the IMCONV options related to
    it, has been removed.  The last release is almost 20 years old, and
    doesn't support any remotely recent platforms.

1. The USE_SIGNALS code to use signal-driven animations has been removed.
    It's been non-default since 3.2 (more than 20 years ago), and not
    documented anywhere but in the code and a comment in this file.

1. The USE_GNOME option and code for GNOME1 support has been removed.

1. The old-style title button action specifications (without an `=` in
  them) deprecated since 3.8 are no longer supported.  Just replacing
  the "`:`" with "`= :`" should suffice to make it work right in 3.8+.
  If you need to share configs with older versions, you'll have to
  conditionalize the syntax with m4 or some other preprocessing.

1. The `f.cut` (and `^` alias for it), `f.cutfile`, and `f.file`
  functions have been removed.  These functions for messing with the
  clipboard were never visibly documented, and came into the manpage in
  3.0 already commented-out and saying they were obsolete.

1. The `f.source` function has been removed.  It's never done anything
  (except beep) as far back as 1.1 and has never been documented.

1. The `f.movemenu` function has been removed.  It was added silently in
  2.1, has never done anything, and has never been documented.

1. The `NoVersion` config parameter has been removed.  It's been
  undocumented, obsoleted, and done absolutely nothing since 1.1.

1. Support for non-flex versions of lex(1) is deprecated, and will take
  some manual work to build.  Note that release tarballs include
  prebuild lexers, so this probably only matters to people building from
  a development tree.  (And if you are, and really need AT&T or some
  other lex to work, talk to us!)

1. Support for building with internal regex implementation has been
  disabled; we now require regex support from libc.  It is still
  possible to enable by manually editing files, but this will be removed
  in the future.  If you have to mess with this, please bring it up on
  the mailing list so we can figure out a long-term solution.

1. Parsing of the `ctwm.workspaces` X resource (i.e., setting `-xrm
  "ctwm.workspaces: something"` on program command-lines) since 3.0 has
  collapsed doubled backslashes (`\\`) into a single (`\`).  However,
  there were no other escapes, so this didn't gain anything.  Using a
  single will work with both variants, unless you need multiple
  backslashes in a row in your workspace names.

1. The `IconRegion` and `WindowRegion` config params both take a `vgrav
  hgrav` pair of parameters to control layout.  Previous versions would
  accept a `hgrav vgrav` ordering in the parsing, and would mostly work
  by odd quirks of the code.  The parsing has been made stricter, so
  only the documented `vgrav hgrav` ordering is accepted now.

### User Visible Changes

1. The default install locations have been changed.  See the README for
    details about where things are installed and how to change them.

1. Several default settings have been changed.  ctwm now defaults to
  acting as though `RestartPreviousState`, `NoGrabServer`,
  `DecorateTransients`, `NoBackingStore`, `RandomPlacement`,
  `OpaqueMove`, `OpaqueResize`, `SortIconManager`, and `StartInMapState`
  have been set.  Those settings that didn't previously have an inverse
  (to get the behavior previously seen when they weren't specified) have
  such added; see below.

1. Added various config parameters as inverses of existing params.  New
  params (with existing param they invert in parens):
    * `BackingStore` (`NoBackingStore`)
    * `GrabServer` (`NoGrabServer`)
    * `StartInButtonState` (`StartInMapState`)
    * `NoSortIconManager` (`SortIconManager`)
    * `NoRestartPreviousState` (`RestartPreviousState`)
    * `NoDecorateTransients` (`DecorateTransients`)

1. Added `DontShowWelcomeWindow` config option to not show welcome
    splashscreen image.

1. Selected a number of cleanups from Stefan Monnier
    <<monnier@IRO.UMontreal.CA>>, including rate-limiting of animations
    using a new `_XA_WM_END_OF_ANIMATION` message.  Font height is
    estimated based on used characters only.  Added some similar changes,
    improved the prevention of placing windows off-screen, the
    `f.rescuewindows` function for emergencies, a hack-fix for
    `f.adoptwindow`. More virtual screen tweaks/fixes.

1. Added the remaining OnTopPriority changes from Stefan Monnier
    <<monnier@IRO.UMontreal.CA>>: `AutoPopup`, `AutoPriority`,
    `OnTopPriority`, `PrioritySwitching`, `f.changepriority`,
    `f.priorityswitching`, `f.setpriority`, `f.switchpriority`,
    `f.tinylower`, `f.tinyraise`.  Currently consistency checking code is
    enabled, which will terminate with an assertion failure if something
    unexpected happens. Smoothed out various inconsistencies that this
    check discovered when virtual screens are used.

1. Basic support for EWMH (Extended Window Manager Hints) added and
    enabled by default.  `EWMHIgnore {}` config option allows selectively
    disabling bits.
    [Olaf "Rhialto" Seibert, Matthew Fuller]

1. Icon manager windows are no longer included in the window ring
    (that had confusing effects on the focus sequence).

1. Added `--dumpcfg` command-line option to print out the compiled-in
    fallback config file.

1. The `Occupy {}` specification now accepts "ws:" as a prefix for
    workspaces.  This may break things if you have workspaces with names
    that differ only by that prefix (e.g., you have workspaces "abc" and
    "ws:abc", and your `Occupy {}` declarations affects both.

1. If ctwm is built with rplay support, sounds may now be configured with
    the RplaySounds {} parameter in the config file in place of the
    `~/.ctwm-sounds` file.  If so, ctwm will give a warning if
    `.ctwm-sounds` exists; support for the external file will be removed
    in a future version.  Also the `SoundHost` config parameter is
    replaced by `RplaySoundHost`; the old name is still accepted, but
    will be removed in a future version.

1. Added `MWMIgnore {}` config option to allow selectively disabling
    honoring of some Motif WM hints.

1. Warping to a window now explicitly sets focus on that window.  This
    would generally (but not always, in the presence of odd X server
    behavior) have already happened for users with focus following mouse,
    but now occurs for `ClickToFocus` users as well.
    [Alexander Klein]

1. Several bugs relating to the Occupy window were fixed.  Iconifying the
    Occupy window no longer loses it and leaves you unable to pull it up
    again.  Minor undersizing in some cases fixed.

1. Windows which fail to use the `WM_HINTS` property to tell us things like
    whether they want us to give them focus are now explicitly given
    focus anyway.  This should fix focus problems with some apps
    (Chromium is a common example).

1. Added `ForceFocus {}` config option to forcibly give focus to all (or
    specified) windows, whether they request it or not.  Previously the
    code did this unconditionally (except when no `WM_HINTS` were
    provided; x-ref previous), but this causes problems with at least
    some programs that tell us they don't want focus, and mean it
    (some Java GUI apps are common examples).

1. `OpaqueMoveThreshold` values >= 200 (the default) are now treated as
    infinite, and so will always cause opaque moving.

### Internals

1. A new code style has been chosen and the entire codebase reformatted
    into it.  Configs for
    [Artistic Style](http://astyle.sourceforge.net/)
    to generate the proper output are in the source tree.

1. The `full_name` element of the TwmWindow structure has been removed.
    Consumers should just use the `name` element instead.

(nia)

2021-04-11 07:35:45 UTC MAIN commitmail json YAML

fetch omp-device-properties.h and don't try to fetch sanitizer
stuff automatically yet.

(mrg)

2021-04-11 01:44:14 UTC MAIN commitmail json YAML

make mknative-gcc.old for GCC 9.  begin to update mknative-gcc for GCC 10.

(mrg)

2021-04-11 01:41:13 UTC MAIN commitmail json YAML

mark an extremely uncommon, but sometimes seen, log message
with the function name it comes with.

(mrg)

2021-04-11 01:38:40 UTC MAIN commitmail json YAML

disable testsuite components.

(mrg)

2021-04-11 01:38:05 UTC MAIN commitmail json YAML

revert a local change that i can't figure out how to port
makes vax-gcc10 tools build.

(mrg)

2021-04-11 01:37:18 UTC MAIN commitmail json YAML

reduce diffs to upstream slightly.

(mrg)