• Home
  • About

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
By using Twitter’s services you agree to our Cookie Use and Data Transfer outside the EU. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
johnregehr's profile
John Regehr
John Regehr
John Regehr
@johnregehr

John Regehr

@johnregehr

In Kentucky it's just FC

Joined September 2009
  • © 2016 Twitter
  • About
  • Help
  • Terms
  • Privacy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @

Retweet this to your followers?

Optional comment for Retweet
 
 

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
140

Are you sure you want to delete this Tweet?

Promote this Tweet

Block

  • Add a location to your Tweets

    When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always have the option to delete your location history. Learn more

    Profile summary

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Your reply includes the people in this conversation up to this point. Learn more

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    Preview

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Buy Now

    Hmm... Something went wrong. Please try again.

    Previous Tweet Next Tweet
    1. John Regehr ‏@johnregehr Jul 12

      tonight I am annoyed by: a program that both gcc and clang compile at -O2 and neither compiles at -O0

      16 retweets 37 likes
      John Regehr ‏@johnregehr Jul 12

      easier to arrange than you might think void bar(void); static int x; int main(void) { if (x) bar(); }

      • Retweets 16
      • Likes 23
      • Martin Haye Pedro Henrique CHRIS PETERSON Matt Guillaume Ceccarelli Eric Eide Xavier Ho ㊙DiGRA-FDG iKyle Mako
      10:01 PM - 12 Jul 2016
      16 retweets 23 likes
        1. William D. Jones ‏@cr1901 Jul 12

          @johnregehr UB b/c x was used before being initialized (unless static vars are special in that respect)?

          0 retweets 0 likes
        2. View other replies
        3. John Regehr ‏@johnregehr Jul 12

          @cr1901 globals in C are zeroed

          0 retweets 2 likes
        4. kragen ‏@kragen Jul 12

          @johnregehr @cr1901 just globals? I thought it was anything with static storage

          0 retweets 0 likes
        5. John Regehr ‏@johnregehr Jul 12

          @kragen @cr1901 sure but mostly globals

          0 retweets 0 likes
        1. marek krajewski ‏@mrkkrj Jul 12

          @johnregehr aren't statics zeroed?

          0 retweets 0 likes
        2. John Regehr ‏@johnregehr Jul 12

          @mrkkrj they are zeroed

          0 retweets 0 likes
        3. marek krajewski ‏@mrkkrj Jul 12

          @johnregehr than the mystery is solved

          0 retweets 0 likes
        4. John Regehr ‏@johnregehr Jul 12

          @mrkkrj it's not a mystery, it's an annoyance

          0 retweets 0 likes
        5. marek krajewski ‏@mrkkrj Jul 12

          @johnregehr :)

          0 retweets 0 likes
        1. Shafik Yaghmour ‏@shafikyaghmour Jul 12

          @johnregehr seems perfectly valid under the as-if rule: http://en.cppreference.com/w/cpp/language/as_if …

          0 retweets 2 likes
        2. John Regehr ‏@johnregehr Jul 12

          @shafikyaghmour yes, valid but sometimes obnoxious

          0 retweets 0 likes
        1. Jens Gustedt ‏@gustedt Jul 12

          @johnregehr You mean that this code doesn't link with -O0?

          0 retweets 0 likes
        2. John Regehr ‏@johnregehr Jul 12

          @gustedt yes

          0 retweets 0 likes
        1. Ferretz ‏@Ferretzau Jul 13

          @johnregehr undefined behaviour remains undefined?

          0 retweets 0 likes
        2. John Regehr ‏@johnregehr Jul 13

          @Ferretzau nope, the program is perfectly well defined

          0 retweets 0 likes
        3. Ferretz ‏@Ferretzau Jul 16

          @johnregehr that prgm looked ill defined, assumed when constants assigned, which I thought was not specified, tho Im likely wrong.

          0 retweets 0 likes
      1. JF Bastien ‏@jfbastien Jul 12

        @johnregehr a debug version walks into a bar(). A release version doesn't walk into a bar(). Joke's on you.

        5 retweets 15 likes
        1. Chris Palmer ‏@fugueish Jul 12

          @johnregehr wat

          0 retweets 1 like
        2. austin seipp ‏@stdlib Jul 12

          @fugueish @johnregehr foo.c:(.text+0x1e): undefined reference to `bar'; at -O2 the call gets removed. a surprisingly subtle case!

          1 retweet 2 likes
        3. Chris Palmer ‏@fugueish Jul 12

          @stdlib @johnregehr Even with -Wall -Wextra, no warning about the always-false condition! sigh

          0 retweets 1 like

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2016 Twitter
        • About
        • Help
        • Terms
        • Privacy
        • Cookies
        • Ads info