login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
16
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Segher Boessenkool
Subject:
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
Date: Wednesday, August 15, 2007 - 6:23 pm
>>>> No; compilation units have nothing to do with it, GCC can optimise
quoted text
>>>> across compilation unit boundaries just fine, if you tell it to >>>> compile more than one compilation unit at once. >>> >>> Last I checked, the Linux kernel build system did compile each .c >>> file >>> as a separate compilation unit. >> >> I have some patches to use -combine -fwhole-program for Linux. >> Highly experimental, you need a patched bleeding edge toolchain. >> If there's interest I'll clean it up and put it online. >> >> David Woodhouse had some similar patches about a year ago. > > Sounds exciting... ;-)
Yeah, the breakage is *quite* spectacular :-)
quoted text
>>>>> In many cases, the compiler also has to assume that >>>>> msleep_interruptible() >>>>> might call back into a function in the current compilation unit, >>>>> thus >>>>> possibly modifying global static variables. >>>> >>>> It most often is smart enough to see what compilation-unit-local >>>> variables might be modified that way, though :-) >>> >>> Yep. For example, if it knows the current value of a given such >>> local >>> variable, and if all code paths that would change some other variable >>> cannot be reached given that current value of the first variable. >> >> Or the most common thing: if neither the address of the translation- >> unit local variable nor the address of any function writing to that >> variable can "escape" from that translation unit, nothing outside >> the translation unit can write to the variable. > > But there is usually at least one externally callable function in > a .c file.
Of course, but often none of those will (indirectly) write a certain static variable. Segher -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Chris Snook
, (Tue Aug 14, 4:04 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Christoph Lameter
, (Tue Aug 14, 4:14 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Herbert Xu
, (Tue Aug 14, 11:49 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Heiko Carstens
, (Wed Aug 15, 1:18 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Stefan Richter
, (Wed Aug 15, 6:53 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Wed Aug 15, 7:35 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Herbert Xu
, (Wed Aug 15, 7:52 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Stefan Richter
, (Wed Aug 15, 9:09 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Chris Snook
, (Wed Aug 15, 9:13 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 9:27 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Wed Aug 15, 10:13 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 11:31 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 11:57 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Wed Aug 15, 12:54 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Stefan Richter
, (Wed Aug 15, 12:58 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 1:17 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 1:47 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 1:52 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 2:05 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 3:42 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 3:44 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Herbert Xu
, (Wed Aug 15, 4:40 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 4:51 pm)
[No subject]
, Satyam Sharma
, (Wed Aug 15, 5:36 pm)
[PATCH] i386: Fix a couple busy loops in mach_wakecpu.h:wa ...
, Satyam Sharma
, (Wed Aug 15, 5:39 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 6:23 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 6:26 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 6:30 pm)
Re:
, Segher Boessenkool
, (Wed Aug 15, 6:38 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 7:22 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Wed Aug 15, 7:23 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 7:30 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Thu Aug 16, 12:32 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Thu Aug 16, 12:33 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Thu Aug 16, 7:19 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul Mackerras
, (Thu Aug 16, 8:16 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Thu Aug 16, 8:32 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Thu Aug 16, 8:42 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Thu Aug 16, 8:50 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Thu Aug 16, 10:18 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Thu Aug 16, 10:56 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Geert Uytterhoeven
, (Thu Aug 16, 11:42 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Fri Aug 17, 12:26 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 1:47 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Andi Kleen
, (Fri Aug 17, 1:52 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Fri Aug 17, 2:15 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul Mackerras
, (Fri Aug 17, 2:48 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 3:08 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 3:12 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 3:23 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Fri Aug 17, 5:14 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 6:05 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Fri Aug 17, 10:37 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Fri Aug 17, 3:29 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Fri Aug 17, 3:49 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 4:51 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Fri Aug 17, 4:55 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Fri Aug 17, 4:59 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Herbert Xu
, (Fri Aug 17, 5:09 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Fri Aug 17, 6:08 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Christoph Lameter
, (Fri Aug 17, 6:24 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 6:41 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Fri Aug 17, 9:13 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Sat Aug 18, 6:36 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Sat Aug 18, 2:54 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Sat Aug 18, 2:56 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Sat Aug 18, 3:41 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Sat Aug 18, 4:19 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Chris Snook
, (Mon Aug 20, 6:31 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Mon Aug 20, 3:04 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Russell King
, (Mon Aug 20, 3:48 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Mon Aug 20, 4:02 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Mon Aug 20, 5:05 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Russell King
, (Tue Aug 21, 12:05 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Russell King
, (Tue Aug 21, 12:08 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul Mackerras
, (Tue Aug 21, 2:33 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Andi Kleen
, (Tue Aug 21, 4:37 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Tue Aug 21, 7:39 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Tue Aug 21, 7:48 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Tue Aug 21, 9:16 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Valdis.Kletnieks
, (Tue Aug 21, 3:51 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Tue Aug 21, 5:50 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Adrian Bunk
, (Wed Aug 22, 2:38 pm)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Denys Vlasenko
, (Fri Aug 24, 4:59 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Andi Kleen
, (Fri Aug 24, 5:07 am)
RE: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Kenn Humborg
, (Fri Aug 24, 5:12 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Denys Vlasenko
, (Fri Aug 24, 5:19 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Satyam Sharma
, (Fri Aug 24, 6:30 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Denys Vlasenko
, (Fri Aug 24, 7:25 am)
RE: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Luck, Tony
, (Fri Aug 24, 9:19 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Christoph Lameter
, (Fri Aug 24, 10:06 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Fri Aug 24, 10:19 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Linus Torvalds
, (Fri Aug 24, 10:34 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Denys Vlasenko
, (Fri Aug 24, 1:26 pm)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Chris Snook
, (Fri Aug 24, 1:34 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate