Skip to content

Commit fa94de6

Browse files
author
Roland McGrath
committed
gas/
2012-03-12 Roland McGrath <[email protected]> * config/tc-arm.c (arm_frag_max_var): New function. * config/tc-arm.h: Declare it. (md_frag_max_var): New macro. * config/tc-i386.c (i386_frag_max_var): New function. * config/tc-i386.h: Declare it. (md_frag_max_var): New macro. * doc/as.texinfo (Bundle directives): New node. (Pseudo Ops): Add it to the menu. * NEWS: Mention new feature. * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro. [HANDLE_BUNDLE] (bundle_align_p2): New variable. [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables. [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle): New functions. (assemble_one): New function if [HANDLE_BUNDLE], #define directly to md_assembly if not. (read_a_source_file): Call assemble_one in place of md_assemble. (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated .bundle_lock at end of processing. [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock): New functions. [HANDLE_BUNDLE] (potable): Add their entries. * read.h: Declare new functions. gas/testsuite/ 2012-03-12 Roland McGrath <[email protected]> * gas/i386/bundle-bad.s: New file. * gas/i386/bundle-bad.d: New file. * gas/i386/bundle-bad.l: New file. * gas/i386/i386.exp: Run it. * gas/arm/bundle.s: New file. * gas/arm/bundle.d: New file. * gas/arm/bundle-lock.s: New file. * gas/arm/bundle-lock.d: New file. * gas/i386/bundle.s: New file. * gas/i386/bundle.d: New file. * gas/i386/x86-64-bundle.s: New file. * gas/i386/x86-64-bundle.d: New file. * gas/i386/bundle-lock.s: New file. * gas/i386/bundle-lock.d: New file. * gas/i386/i386.exp: Run them.
1 parent 46cb647 commit fa94de6

24 files changed

Lines changed: 8953 additions & 86 deletions

gas/ChangeLog

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
2012-03-12 Roland McGrath <[email protected]>
2+
3+
* config/tc-arm.c (arm_frag_max_var): New function.
4+
* config/tc-arm.h: Declare it.
5+
(md_frag_max_var): New macro.
6+
7+
* config/tc-i386.c (i386_frag_max_var): New function.
8+
* config/tc-i386.h: Declare it.
9+
(md_frag_max_var): New macro.
10+
11+
* doc/as.texinfo (Bundle directives): New node.
12+
(Pseudo Ops): Add it to the menu.
13+
* NEWS: Mention new feature.
14+
* read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
15+
[HANDLE_BUNDLE] (bundle_align_p2): New variable.
16+
[HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
17+
[HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
18+
New functions.
19+
(assemble_one): New function if [HANDLE_BUNDLE], #define directly
20+
to md_assembly if not.
21+
(read_a_source_file): Call assemble_one in place of md_assemble.
22+
(read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
23+
.bundle_lock at end of processing.
24+
[HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
25+
New functions.
26+
[HANDLE_BUNDLE] (potable): Add their entries.
27+
* read.h: Declare new functions.
28+
129
2012-03-10 Edmar Wienskoski <[email protected]>
230

331
* config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.

gas/NEWS

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
-*- text -*-
22

3+
* Add support for .bundle_align_mode, .bundle_lock, and .bundle_unlock
4+
directives. These are currently available only for x86 and ARM targets.
5+
36
* Add support for the Renesas RL78 architecture.
47

58
* Add support for the Adapteva EPIPHANY architecture.
@@ -48,10 +51,10 @@ Changes in 2.20:
4851
indicate that if the symbol is the target of a relocation, its value should
4952
not be use. Instead the function should be invoked and its result used as
5053
the value.
51-
54+
5255
* Add support for Lattice Mico32 (lm32) architecture.
5356

54-
* Add support for Xilinx MicroBlaze architecture.
57+
* Add support for Xilinx MicroBlaze architecture.
5558

5659
Changes in 2.19:
5760

@@ -110,7 +113,7 @@ Changes in 2.17:
110113
* The SH target supports a new command line switch --enable-reg-prefix which,
111114
if enabled, will allow register names to be optionally prefixed with a $
112115
character. This allows register names to be distinguished from label names.
113-
116+
114117
* Macros with a variable number of arguments are now supported. See the
115118
documentation for how this works.
116119

@@ -123,7 +126,7 @@ Changes in 2.17:
123126
known to cause problems in certain sources when the respective target uses
124127
characters inconsistently, and thus macro parameter references may no longer
125128
be recognized as such (see the documentation for details).
126-
129+
127130
* Support the .f_floating, .d_floating, .g_floating and .h_floating directives
128131
for the VAX target in order to be more compatible with the VAX MACRO
129132
assembler.
@@ -189,7 +192,7 @@ Changes in 2.15:
189192

190193
* Added --gstabs+ switch to enable the generation of STABS debug format
191194
information with GNU extensions.
192-
195+
193196
* Added support for MIPS64 Release 2.
194197

195198
* Added support for v850e1.
@@ -212,14 +215,14 @@ Changes in 2.14:
212215

213216
* An assembler test generator has been contributed and an example file that
214217
uses it (gas/testsuite/gas/all/test-gen.c and test-exmaple.c).
215-
218+
216219
* Support for SH2E added.
217220

218221
* GASP has now been removed.
219222

220223
* Support for Texas Instruments TMS320C4x and TMS320C3x series of
221224
DSP's contributed by Michael Hayes and Svein E. Seldal.
222-
225+
223226
* Support for the Ubicom IP2xxx microcontroller added.
224227

225228
Changes in 2.13:
@@ -242,8 +245,8 @@ Changes in 2.12:
242245

243246
* Support for the OpenRISC 32-bit embedded processor by OpenCores.
244247

245-
* The ARM assembler now accepts -march=..., -mcpu=... and -mfpu=... for
246-
specifying the target instruction set. The old method of specifying the
248+
* The ARM assembler now accepts -march=..., -mcpu=... and -mfpu=... for
249+
specifying the target instruction set. The old method of specifying the
247250
target processor has been deprecated, but is still accepted for
248251
compatibility.
249252

@@ -256,7 +259,7 @@ Changes in 2.12:
256259
* The MIPS assembler now accepts -march/-mtune. -mcpu has been deprecated
257260
but still works for compatability.
258261

259-
* The MIPS assembler no longer issues a warning by default when it
262+
* The MIPS assembler no longer issues a warning by default when it
260263
generates a nop instruction from a macro. The new command line option
261264
-n will turn on the warning.
262265

@@ -307,7 +310,7 @@ Changes in 2.10:
307310

308311
* Motorola MCore 210 processor support added.
309312

310-
* A new pseudo-op .intel_syntax has been implemented to allow gas to parse i386
313+
* A new pseudo-op .intel_syntax has been implemented to allow gas to parse i386
311314
assembly programs with intel syntax.
312315

313316
* New pseudo-ops .func,.endfunc to aid in debugging user-written assembler code.
@@ -316,7 +319,7 @@ Changes in 2.10:
316319

317320
* Full 16-bit mode support for i386.
318321

319-
* Greatly improved instruction operand checking for i386. This change will
322+
* Greatly improved instruction operand checking for i386. This change will
320323
produce errors or warnings on incorrect assembly code that previous versions
321324
of gas accepted. If you get unexpected messages from code that worked with
322325
older versions of gas, please double check the code before reporting a bug.
@@ -335,12 +338,12 @@ Changes in 2.9:
335338

336339
* Texas Instruments c30 (tms320c30) support added.
337340

338-
* The assembler now optimizes the exception frame information generated by egcs
341+
* The assembler now optimizes the exception frame information generated by egcs
339342
and gcc 2.8. The new --traditional-format option disables this optimization.
340343

341344
* Added --gstabs option to generate stabs debugging information.
342345

343-
* The -a option takes a new suboption, m (e.g., -alm) to expand macros in a
346+
* The -a option takes a new suboption, m (e.g., -alm) to expand macros in a
344347
listing.
345348

346349
* Added -MD option to print dependencies.
@@ -390,7 +393,7 @@ Changes in 2.7:
390393

391394
* SCO ELF support added. For OpenServer 5 targets (i386-unknown-sco3.2v5) the
392395
default is to build COFF-only support. To get a set of tools that generate
393-
ELF (they'll understand both COFF and ELF), you must configure with
396+
ELF (they'll understand both COFF and ELF), you must configure with
394397
target=i386-unknown-sco3.2v5elf.
395398

396399
* m88k-motorola-sysv3* support added.
@@ -421,18 +424,18 @@ Changes in 2.4:
421424
* Support for the control registers in the 68060.
422425

423426
* Handles (ignores) a new directive ".this_GCC_requires_the_GNU_assembler", to
424-
provide for possible future gcc changes, for targets where gas provides some
425-
features not available in the native assembler. If the native assembler is
427+
provide for possible future gcc changes, for targets where gas provides some
428+
features not available in the native assembler. If the native assembler is
426429
used, it should become obvious pretty quickly what the problem is.
427430

428431
* Usage message is available with "--help".
429432

430-
* The GNU Assembler Preprocessor (gasp) is included. (Actually, it was in 2.3
433+
* The GNU Assembler Preprocessor (gasp) is included. (Actually, it was in 2.3
431434
also, but didn't get into the NEWS file.)
432435

433436
* Weak symbol support for a.out.
434437

435-
* A bug in the listing code which could cause an infinite loop has been fixed.
438+
* A bug in the listing code which could cause an infinite loop has been fixed.
436439
Bugs in listings when generating a COFF object file have also been fixed.
437440

438441
* Initial i386-svr4 PIC implementation from Eric Youngdale, based on code by
@@ -454,7 +457,7 @@ Changes in 2.3:
454457
again too.
455458

456459
* HP-PA work, by Jeff Law. Note, for the PA, gas-2.3 has been designed to work
457-
with gdb-4.12 and gcc-2.6. As gcc-2.6 has not been released yet, a special
460+
with gdb-4.12 and gcc-2.6. As gcc-2.6 has not been released yet, a special
458461
version of gcc-2.5.8 has been patched to work with gas-2.3. You can retrieve
459462
this special version of gcc-2.5.8 via anonymous ftp from jaguar.cs.utah.edu
460463
in the "dist" directory.
@@ -463,18 +466,18 @@ Changes in 2.3:
463466
simple tests okay. I haven't put it through extensive testing. (GNU make is
464467
currently required for BSD 4.3 builds.)
465468

466-
* Support for the DEC Alpha, running OSF/1 (ECOFF format). The gas support is
469+
* Support for the DEC Alpha, running OSF/1 (ECOFF format). The gas support is
467470
based on code donated by CMU, which used an a.out-based format. I'm afraid
468471
the alpha-a.out support is pretty badly mangled, and much of it removed;
469472
making it work will require rewriting it as BFD support for the format anyways.
470473

471474
* Irix 5 support.
472475

473-
* The test suites have been fixed up a bit, so that they should work with a
476+
* The test suites have been fixed up a bit, so that they should work with a
474477
couple different versions of expect and dejagnu.
475478

476-
* Symbols' values are now handled internally as expressions, permitting more
477-
flexibility in evaluating them in some cases. Some details of relocation
479+
* Symbols' values are now handled internally as expressions, permitting more
480+
flexibility in evaluating them in some cases. Some details of relocation
478481
handling have also changed, and simple constant pool management has been
479482
added, to make the Alpha port easier.
480483

@@ -487,17 +490,17 @@ Changes in 2.2:
487490

488491
* RS/6000 AIX and MIPS SGI Irix 5 support has been added.
489492

490-
* Configurations that are still in development (and therefore are convenient to
491-
have listed in configure.in) still get rejected without a minor change to
493+
* Configurations that are still in development (and therefore are convenient to
494+
have listed in configure.in) still get rejected without a minor change to
492495
gas/Makefile.in, so people not doing development work shouldn't get the
493496
impression that support for such configurations is actually believed to be
494497
reliable.
495498

496-
* The program name (usually "as") is printed when a fatal error message is
499+
* The program name (usually "as") is printed when a fatal error message is
497500
displayed. This should prevent some confusion about the source of occasional
498501
messages about "internal errors".
499502

500-
* ELF support is falling into place. Support for the 386 should be working.
503+
* ELF support is falling into place. Support for the 386 should be working.
501504
Support for SPARC Solaris is in. HPPA support from Utah is being integrated.
502505

503506
* Symbol values are maintained as expressions instead of being immediately
@@ -506,22 +509,22 @@ Changes in 2.2:
506509
known.
507510

508511
* DBX-style debugging info ("stabs") is now supported for COFF formats.
509-
If any stabs directives are seen in the source, GAS will create two new
510-
sections: a ".stab" and a ".stabstr" section. The format of the .stab
512+
If any stabs directives are seen in the source, GAS will create two new
513+
sections: a ".stab" and a ".stabstr" section. The format of the .stab
511514
section is nearly identical to the a.out symbol format, and .stabstr is
512515
its string table. For this to be useful, you must have configured GCC
513516
to generate stabs (by defining DBX_DEBUGGING_INFO), and must have a GDB
514517
that can use the stab sections (4.11 or later).
515518

516-
* LynxOS, on i386 and m68k platforms, is now supported. SPARC LynxOS
519+
* LynxOS, on i386 and m68k platforms, is now supported. SPARC LynxOS
517520
support is in progress.
518521

519522
Changes in 2.1:
520523

521-
* Several small fixes for i386-aix (PS/2) support from Minh Tran-Le have been
524+
* Several small fixes for i386-aix (PS/2) support from Minh Tran-Le have been
522525
incorporated, but not well tested yet.
523526

524-
* Altered the opcode table split for m68k; it should require less VM to compile
527+
* Altered the opcode table split for m68k; it should require less VM to compile
525528
with gcc now.
526529

527530
* Some minor adjustments to add (Convergent Technologies') Miniframe support,

0 commit comments

Comments
 (0)