fcombine-regs

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

fcombine-regs

Post by piranha »

What is fcombine-regs? I found this in the linux kernel 0.01 makefile.

thx
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

Ahem,

Code: Select all

Allow the combine pass to combine an  instruction  that
copies  one register into another.  This might or might
not produce better code when used in addition to -O.  I
am  interested  in  hearing  about  the difference this
makes.
This is from an archive of GCC 1.36's manual. It's no longer used. At least that's what my GCC tells me in the form of:

Code: Select all

cc1: error: unrecognized option `-fcombine-regs'
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

For example:

gcc -fcombine-regs t.c -o t.o


i get it to say: unrecognized command line option "-fcombine-regs"

I don't know if this is the reason, but when I compile linux it has hundreds of errors.
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

No, I don't think the lack of -fcombine-regs should produce any errors, as it is just an optimization. (Yet, I could be wrong... :oops:) However, the hundreds of errors might be coming from various changes that have occurred over 15 years in different tools....Maybe?
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

The original linux kernel was compiled under minix.

I remember seeing someone's site that made a patch or alternative release that is buildable on modern systems.

Can't remember where..
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply