[Top][All Lists]

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

[sr #108559] libtool binary wrappers fall prey to aggressive optimizatio

From: Peter Rosin
Subject: [sr #108559] libtool binary wrappers fall prey to aggressive optimizations
Date: Fri, 02 May 2014 09:09:34 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36

Follow-up Comment #1, sr #108559 (project libtool):

Isn't this a more direct approach, not affected by new and even
more aggressive optimizations?

-volatile const char * MAGIC_EXE = "$magic_exe";
+#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
+# define externally_visible volatile
+# define externally_visible __attribute__((externally_visible)) volatile
+externally_visible const char * MAGIC_EXE = "$magic_exe";

Does the above work for you?



Reply to this item at:


  Meddelandet skickades via/av Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]