Re: m68k: Simple loop compiles into boundless recursion with -O2

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

 



[ Stefan Franke, there are SMTP issues, see below. ]

Segher Boessenkool wrote:
> You would use this flag only for compiling the memset (etc.) routines
> themselves.  Maybe using a pragma or similar.

This was helpful. I've now replaced -ffreestanding and with GNU Make one can
easily amend the general compilation recipe with extra CFLAGS for specific
files, like so:

memcpy.o memset.o: CFLAGS += -fno-tree-loop-distribute-patterns

$(OBJS): %.o : %.c
	$(CC) $(CFLAGS) -c -o $@ $<

Stefan Franke wrote:
> e.g. this one:
> 
> __attribute__((optimize("no-tree-loop-distribute-patterns"))) 
> void *memset2(void *s, int c, unsigned int n)
> {
> ...

This works, too, and I prefer it because the __attribute__ is attached
to the code itself.

Stefan, I received a bounce for my reply to you yesterday:

<stefan@xxxxxxxxx>: host serveronline.org[78.46.86.77] said: 451-sending server
    is not yet permitted to send mail for senders domain 451 server:
    ste-pvt-msa1.bahnhof.se[213.80.101.70=ste-pvt-msa1.bahnhof.se] tried to
    send for domain: nocrew.org (in reply to RCPT TO command)

The GNU help mailing list accepted it, though:

https://gcc.gnu.org/pipermail/gcc-help/2021-January/139797.html

Similarly, your reply

https://gcc.gnu.org/pipermail/gcc-help/2021-January/139801.html

wasn't delivered to me.

Fredrik



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux